From 93c4a6a3f70e389b466fbc7a4f1ad2e1df87c93f Mon Sep 17 00:00:00 2001 From: Damien George Date: Wed, 21 Sep 2016 10:52:53 +1000 Subject: all: Remove 'name' member from mp_obj_module_t struct. One can instead lookup __name__ in the modules dict to get the value. --- stmhal/modmachine.c | 1 - stmhal/modnetwork.c | 1 - stmhal/modpyb.c | 1 - stmhal/modstm.c | 1 - stmhal/moduos.c | 1 - stmhal/moduselect.c | 1 - stmhal/modusocket.c | 1 - stmhal/modutime.c | 1 - 8 files changed, 8 deletions(-) (limited to 'stmhal') diff --git a/stmhal/modmachine.c b/stmhal/modmachine.c index ca17eff80..c5f33146f 100644 --- a/stmhal/modmachine.c +++ b/stmhal/modmachine.c @@ -559,7 +559,6 @@ STATIC MP_DEFINE_CONST_DICT(machine_module_globals, machine_module_globals_table const mp_obj_module_t machine_module = { .base = { &mp_type_module }, - .name = MP_QSTR_umachine, .globals = (mp_obj_dict_t*)&machine_module_globals, }; diff --git a/stmhal/modnetwork.c b/stmhal/modnetwork.c index 4425461a0..1ea224cbf 100644 --- a/stmhal/modnetwork.c +++ b/stmhal/modnetwork.c @@ -86,6 +86,5 @@ STATIC MP_DEFINE_CONST_DICT(mp_module_network_globals, mp_module_network_globals const mp_obj_module_t mp_module_network = { .base = { &mp_type_module }, - .name = MP_QSTR_network, .globals = (mp_obj_dict_t*)&mp_module_network_globals, }; diff --git a/stmhal/modpyb.c b/stmhal/modpyb.c index 209d0fb4a..17c3411eb 100644 --- a/stmhal/modpyb.c +++ b/stmhal/modpyb.c @@ -229,6 +229,5 @@ STATIC MP_DEFINE_CONST_DICT(pyb_module_globals, pyb_module_globals_table); const mp_obj_module_t pyb_module = { .base = { &mp_type_module }, - .name = MP_QSTR_pyb, .globals = (mp_obj_dict_t*)&pyb_module_globals, }; diff --git a/stmhal/modstm.c b/stmhal/modstm.c index 005cd824a..76c8eb155 100644 --- a/stmhal/modstm.c +++ b/stmhal/modstm.c @@ -51,6 +51,5 @@ STATIC MP_DEFINE_CONST_DICT(stm_module_globals, stm_module_globals_table); const mp_obj_module_t stm_module = { .base = { &mp_type_module }, - .name = MP_QSTR_stm, .globals = (mp_obj_dict_t*)&stm_module_globals, }; diff --git a/stmhal/moduos.c b/stmhal/moduos.c index 52d0a5842..0a369ef38 100644 --- a/stmhal/moduos.c +++ b/stmhal/moduos.c @@ -407,6 +407,5 @@ STATIC MP_DEFINE_CONST_DICT(os_module_globals, os_module_globals_table); const mp_obj_module_t mp_module_uos = { .base = { &mp_type_module }, - .name = MP_QSTR_uos, .globals = (mp_obj_dict_t*)&os_module_globals, }; diff --git a/stmhal/moduselect.c b/stmhal/moduselect.c index 92e77e6ca..2dcac7fde 100644 --- a/stmhal/moduselect.c +++ b/stmhal/moduselect.c @@ -307,6 +307,5 @@ STATIC MP_DEFINE_CONST_DICT(mp_module_select_globals, mp_module_select_globals_t const mp_obj_module_t mp_module_uselect = { .base = { &mp_type_module }, - .name = MP_QSTR_uselect, .globals = (mp_obj_dict_t*)&mp_module_select_globals, }; diff --git a/stmhal/modusocket.c b/stmhal/modusocket.c index c0e30ce05..36f149c45 100644 --- a/stmhal/modusocket.c +++ b/stmhal/modusocket.c @@ -444,6 +444,5 @@ STATIC MP_DEFINE_CONST_DICT(mp_module_usocket_globals, mp_module_usocket_globals const mp_obj_module_t mp_module_usocket = { .base = { &mp_type_module }, - .name = MP_QSTR_usocket, .globals = (mp_obj_dict_t*)&mp_module_usocket_globals, }; diff --git a/stmhal/modutime.c b/stmhal/modutime.c index 8502e0fd6..60c92d60c 100644 --- a/stmhal/modutime.c +++ b/stmhal/modutime.c @@ -213,6 +213,5 @@ STATIC MP_DEFINE_CONST_DICT(time_module_globals, time_module_globals_table); const mp_obj_module_t mp_module_utime = { .base = { &mp_type_module }, - .name = MP_QSTR_utime, .globals = (mp_obj_dict_t*)&time_module_globals, }; -- cgit v1.2.3