Skip to content

Commit 48967ed

Browse files
authored
Merge pull request #6802 from dhalbert/remove-last_received_report-property
remove usb_hid.Device.last_received_report
2 parents 073fc9d + fa5fcb6 commit 48967ed

File tree

1 file changed

+0
-20
lines changed

1 file changed

+0
-20
lines changed

shared-bindings/usb_hid/Device.c

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -219,25 +219,6 @@ STATIC mp_obj_t usb_hid_device_get_last_received_report(size_t n_args, const mp_
219219
}
220220
MP_DEFINE_CONST_FUN_OBJ_KW(usb_hid_device_get_last_received_report_obj, 1, usb_hid_device_get_last_received_report);
221221

222-
//| last_received_report: bytes
223-
//| """The HID OUT report as a `bytes` (read-only). `None` if nothing received.
224-
//| Same as `get_last_received_report()` with no argument.
225-
//|
226-
//| Deprecated: will be removed in CircutPython 8.0.0. Use `get_last_received_report()` instead.
227-
//| """
228-
//|
229-
STATIC mp_obj_t usb_hid_device_obj_get_last_received_report_property(mp_obj_t self_in) {
230-
usb_hid_device_obj_t *self = MP_OBJ_TO_PTR(self_in);
231-
232-
// Get the sole report_id, if there is one.
233-
const uint8_t report_id = common_hal_usb_hid_device_validate_report_id(self, -1);
234-
return common_hal_usb_hid_device_get_last_received_report(self, report_id);
235-
}
236-
MP_DEFINE_CONST_FUN_OBJ_1(usb_hid_device_get_last_received_report_property_obj, usb_hid_device_obj_get_last_received_report_property);
237-
238-
MP_PROPERTY_GETTER(usb_hid_device_last_received_report_obj,
239-
(mp_obj_t)&usb_hid_device_get_last_received_report_property_obj);
240-
241222
//| usage_page: int
242223
//| """The device usage page identifier, which designates a category of device. (read-only)"""
243224
//|
@@ -269,7 +250,6 @@ MP_PROPERTY_GETTER(usb_hid_device_usage_obj,
269250
STATIC const mp_rom_map_elem_t usb_hid_device_locals_dict_table[] = {
270251
{ MP_ROM_QSTR(MP_QSTR_send_report), MP_ROM_PTR(&usb_hid_device_send_report_obj) },
271252
{ MP_ROM_QSTR(MP_QSTR_get_last_received_report), MP_ROM_PTR(&usb_hid_device_get_last_received_report_obj) },
272-
{ MP_ROM_QSTR(MP_QSTR_last_received_report), MP_ROM_PTR(&usb_hid_device_last_received_report_obj) },
273253
{ MP_ROM_QSTR(MP_QSTR_usage_page), MP_ROM_PTR(&usb_hid_device_usage_page_obj) },
274254
{ MP_ROM_QSTR(MP_QSTR_usage), MP_ROM_PTR(&usb_hid_device_usage_obj) },
275255

0 commit comments

Comments
 (0)