Skip to content

Commit 19fab4a

Browse files
committed
bleio: Remove deep copy constructor for UUID
1 parent b5e5805 commit 19fab4a

File tree

2 files changed

+0
-12
lines changed

2 files changed

+0
-12
lines changed

ports/nrf/common-hal/bleio/UUID.c

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -105,17 +105,6 @@ void common_hal_bleio_uuid_construct(bleio_uuid_obj_t *self, const mp_obj_t *uui
105105
return;
106106
}
107107

108-
// deep copy
109-
if (MP_OBJ_IS_TYPE(*uuid, &bleio_uuid_type)) {
110-
bleio_uuid_obj_t *other = MP_OBJ_TO_PTR(*uuid);
111-
self->type = other->type;
112-
self->uuid_vs_idx = other->uuid_vs_idx;
113-
self->value[0] = other->value[0];
114-
self->value[1] = other->value[1];
115-
116-
return;
117-
}
118-
119108
nlr_raise(mp_obj_new_exception_msg_varg(&mp_type_ValueError,
120109
"Invalid UUID parameter"));
121110
}

shared-bindings/bleio/UUID.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,6 @@ enum {
8787
//|
8888
//| - a `int` value in range of 0 to 0xFFFF
8989
//| - a `str` value in the format of '0xXXXX' for 16-bit or 'XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX' for 128-bit
90-
//| - another UUID object
9190
//|
9291
//| :param int/str uuid: The uuid to encapsulate
9392
//|

0 commit comments

Comments
 (0)