Skip to content

Commit ccb3c6f

Browse files
committed
Remove print methods from bleio; Python lib will do it
1 parent c46d06f commit ccb3c6f

2 files changed

Lines changed: 0 additions & 22 deletions

File tree

shared-bindings/bleio/Characteristic.c

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -89,14 +89,6 @@ STATIC mp_obj_t bleio_characteristic_make_new(const mp_obj_type_t *type, size_t
8989
return MP_OBJ_FROM_PTR(self);
9090
}
9191

92-
STATIC void bleio_characteristic_print(const mp_print_t *print, mp_obj_t self_in, mp_print_kind_t kind) {
93-
bleio_characteristic_obj_t *self = MP_OBJ_TO_PTR(self_in);
94-
95-
mp_printf(print, "Characteristic(");
96-
bleio_uuid_print(print, self->uuid, kind);
97-
mp_printf(print, ")");
98-
}
99-
10092
//| .. attribute:: broadcast
10193
//|
10294
//| 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
274266
const mp_obj_type_t bleio_characteristic_type = {
275267
{ &mp_type_type },
276268
.name = MP_QSTR_Characteristic,
277-
.print = bleio_characteristic_print,
278269
.make_new = bleio_characteristic_make_new,
279270
.locals_dict = (mp_obj_dict_t*)&bleio_characteristic_locals_dict
280271
};

shared-bindings/bleio/UUID.c

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -89,18 +89,6 @@ STATIC mp_obj_t bleio_uuid_make_new(const mp_obj_type_t *type, size_t n_args, si
8989
return MP_OBJ_FROM_PTR(self);
9090
}
9191

92-
void bleio_uuid_print(const mp_print_t *print, mp_obj_t self_in, mp_print_kind_t kind) {
93-
bleio_uuid_obj_t *self = MP_OBJ_TO_PTR(self_in);
94-
95-
if (common_hal_bleio_uuid_get_size(self) == 128) {
96-
mp_printf(print, "UUID(uuid16=0x%04x, uuid128_reference=0x%02x)",
97-
common_hal_bleio_uuid_get_uuid16(self),
98-
common_hal_bleio_uuid_get_uuid128_reference(self));
99-
} else {
100-
mp_printf(print, "UUID(0x%04x)", common_hal_bleio_uuid_get_uuid16(self));
101-
}
102-
}
103-
10492
//| .. attribute:: uuid16
10593
//|
10694
//| 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_
236224
const mp_obj_type_t bleio_uuid_type = {
237225
{ &mp_type_type },
238226
.name = MP_QSTR_UUID,
239-
.print = bleio_uuid_print,
240227
.make_new = bleio_uuid_make_new,
241228
.unary_op = bleio_uuid_unary_op,
242229
.binary_op = bleio_uuid_binary_op,

0 commit comments

Comments
 (0)