Skip to content

Commit 262f4a4

Browse files
iabdalkaderdpgeorge
authored andcommitted
nrf/mpconfigport: Remove obsolete module declarations.
External module declarations are no longer used/needed after the introduction of MP_REGISTER_MODULE.
1 parent 5bf3765 commit 262f4a4

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

ports/nrf/mpconfigport.h

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -295,14 +295,6 @@ typedef int mp_int_t; // must be pointer size
295295
typedef unsigned int mp_uint_t; // must be pointer size
296296
typedef long mp_off_t;
297297

298-
// extra built in modules to add to the list of known ones
299-
extern const struct _mp_obj_module_t board_module;
300-
extern const struct _mp_obj_module_t nrf_module;
301-
extern const struct _mp_obj_module_t mp_module_utime;
302-
extern const struct _mp_obj_module_t mp_module_uos;
303-
extern const struct _mp_obj_module_t mp_module_ubluepy;
304-
extern const struct _mp_obj_module_t music_module;
305-
306298
#if BOARD_SPECIFIC_MODULES
307299
#include "boardmodules.h"
308300
#endif // BOARD_SPECIFIC_MODULES
@@ -314,7 +306,6 @@ extern const struct _mp_obj_module_t music_module;
314306

315307
// extra constants
316308
#define MICROPY_PORT_CONSTANTS \
317-
{ MP_ROM_QSTR(MP_QSTR_board), MP_ROM_PTR(&board_module) }, \
318309
{ MP_ROM_QSTR(MP_QSTR_machine), MP_ROM_PTR(&mp_module_machine) }, \
319310

320311
#define MP_STATE_PORT MP_STATE_VM

0 commit comments

Comments
 (0)