Remove print methods from bleio; Python lib will do it

This commit is contained in:
Dan Halbert 2019-01-03 10:51:49 -05:00
parent c46d06f34c
commit ccb3c6fac6
2 changed files with 0 additions and 22 deletions

View File

@ -89,14 +89,6 @@ STATIC mp_obj_t bleio_characteristic_make_new(const mp_obj_type_t *type, size_t
return MP_OBJ_FROM_PTR(self);
}
STATIC void bleio_characteristic_print(const mp_print_t *print, mp_obj_t self_in, mp_print_kind_t kind) {
bleio_characteristic_obj_t *self = MP_OBJ_TO_PTR(self_in);
mp_printf(print, "Characteristic(");
bleio_uuid_print(print, self->uuid, kind);
mp_printf(print, ")");
}
//| .. attribute:: broadcast
//|
//| A `bool` specifying if the characteristic allows broadcasting its value. (read-only)
@ -274,7 +266,6 @@ STATIC MP_DEFINE_CONST_DICT(bleio_characteristic_locals_dict, bleio_characterist
const mp_obj_type_t bleio_characteristic_type = {
{ &mp_type_type },
.name = MP_QSTR_Characteristic,
.print = bleio_characteristic_print,
.make_new = bleio_characteristic_make_new,
.locals_dict = (mp_obj_dict_t*)&bleio_characteristic_locals_dict
};

View File

@ -89,18 +89,6 @@ STATIC mp_obj_t bleio_uuid_make_new(const mp_obj_type_t *type, size_t n_args, si
return MP_OBJ_FROM_PTR(self);
}
void bleio_uuid_print(const mp_print_t *print, mp_obj_t self_in, mp_print_kind_t kind) {
bleio_uuid_obj_t *self = MP_OBJ_TO_PTR(self_in);
if (common_hal_bleio_uuid_get_size(self) == 128) {
mp_printf(print, "UUID(uuid16=0x%04x, uuid128_reference=0x%02x)",
common_hal_bleio_uuid_get_uuid16(self),
common_hal_bleio_uuid_get_uuid128_reference(self));
} else {
mp_printf(print, "UUID(0x%04x)", common_hal_bleio_uuid_get_uuid16(self));
}
}
//| .. attribute:: uuid16
//|
//| The 16-bit part of the UUID. (read-only)
@ -236,7 +224,6 @@ STATIC mp_obj_t bleio_uuid_binary_op(mp_binary_op_t op, mp_obj_t lhs_in, mp_obj_
const mp_obj_type_t bleio_uuid_type = {
{ &mp_type_type },
.name = MP_QSTR_UUID,
.print = bleio_uuid_print,
.make_new = bleio_uuid_make_new,
.unary_op = bleio_uuid_unary_op,
.binary_op = bleio_uuid_binary_op,