bleio: Remove deep copy constructor for UUID

This commit is contained in:
arturo182 2018-07-23 23:55:15 +02:00
parent b5e5805bb4
commit 19fab4af5a
2 changed files with 0 additions and 12 deletions

View File

@ -105,17 +105,6 @@ void common_hal_bleio_uuid_construct(bleio_uuid_obj_t *self, const mp_obj_t *uui
return;
}
// deep copy
if (MP_OBJ_IS_TYPE(*uuid, &bleio_uuid_type)) {
bleio_uuid_obj_t *other = MP_OBJ_TO_PTR(*uuid);
self->type = other->type;
self->uuid_vs_idx = other->uuid_vs_idx;
self->value[0] = other->value[0];
self->value[1] = other->value[1];
return;
}
nlr_raise(mp_obj_new_exception_msg_varg(&mp_type_ValueError,
"Invalid UUID parameter"));
}

View File

@ -87,7 +87,6 @@ enum {
//|
//| - a `int` value in range of 0 to 0xFFFF
//| - a `str` value in the format of '0xXXXX' for 16-bit or 'XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX' for 128-bit
//| - another UUID object
//|
//| :param int/str uuid: The uuid to encapsulate
//|