Skip to content
This repository was archived by the owner on Apr 25, 2021. It is now read-only.

Commit 031f40a

Browse files
committed
Remove unused compoent_count() and max_components() from ucomponent
1 parent 18d01c3 commit 031f40a

File tree

3 files changed

+0
-26
lines changed

3 files changed

+0
-26
lines changed

src/moducomponent.c

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -18,20 +18,6 @@ STATIC mp_obj_t ucomponent_components(size_t n_args, const mp_obj_t *args) {
1818
MP_DEFINE_CONST_FUN_OBJ_VAR_BETWEEN(ucomponent_components_obj, 0, 1, ucomponent_components);
1919

2020

21-
STATIC mp_obj_t ucomponent_component_count() {
22-
return wrap_result(__syscall0(SYS_COMPONENT_COUNT));
23-
}
24-
25-
MP_DEFINE_CONST_FUN_OBJ_0(ucomponent_component_count_obj, ucomponent_component_count);
26-
27-
28-
STATIC mp_obj_t ucomponent_max_components() {
29-
return wrap_result(__syscall0(SYS_COMPONENT_MAX));
30-
}
31-
32-
MP_DEFINE_CONST_FUN_OBJ_0(ucomponent_max_components_obj, ucomponent_max_components);
33-
34-
3521
STATIC mp_obj_t ucomponent_methods(mp_obj_t address_obj) {
3622
mp_obj_t items[] = {address_obj};
3723
msgpack_result_t result = msgpack_args_dumps(1, items);
@@ -75,8 +61,6 @@ STATIC const mp_rom_map_elem_t ucomponent_module_globals_table[] = {
7561

7662
// components
7763
{MP_ROM_QSTR(MP_QSTR_components), MP_ROM_PTR(&ucomponent_components_obj)},
78-
{MP_ROM_QSTR(MP_QSTR_component_count), MP_ROM_PTR(&ucomponent_component_count_obj)},
79-
{MP_ROM_QSTR(MP_QSTR_max_components), MP_ROM_PTR(&ucomponent_max_components_obj)},
8064
{MP_ROM_QSTR(MP_QSTR_methods), MP_ROM_PTR(&ucomponent_methods_obj)},
8165
{MP_ROM_QSTR(MP_QSTR_doc), MP_ROM_PTR(&ucomponent_doc_obj)},
8266

src/syscall_table.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,6 @@
1818
#define SYS_COMPONENT (0x040000)
1919
#define SYS_COMPONENT_INVOKE (SYS_COMPONENT | 0)
2020
#define SYS_COMPONENT_LIST (SYS_COMPONENT | 16)
21-
#define SYS_COMPONENT_COUNT (SYS_COMPONENT | 17)
22-
#define SYS_COMPONENT_MAX (SYS_COMPONENT | 18)
2321
#define SYS_COMPONENT_METHODS (SYS_COMPONENT | 19)
2422
#define SYS_COMPONENT_DOC (SYS_COMPONENT | 20)
2523

src/umodules/ucomponent.pyi

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,6 @@ def components(device: str) -> List[str]:
1313
pass
1414

1515

16-
def component_count() -> int:
17-
pass
18-
19-
20-
def max_components() -> int:
21-
pass
22-
23-
2416
def methods(address: str) -> List[str]:
2517
pass
2618

0 commit comments

Comments
 (0)