From 262f4a48554358d3d5866ddbcc23169ffb202f68 Mon Sep 17 00:00:00 2001 From: iabdalkader Date: Thu, 14 Jul 2022 21:10:58 +0200 Subject: [PATCH] nrf/mpconfigport: Remove obsolete module declarations. External module declarations are no longer used/needed after the introduction of MP_REGISTER_MODULE. --- ports/nrf/mpconfigport.h | 9 --------- 1 file changed, 9 deletions(-) diff --git a/ports/nrf/mpconfigport.h b/ports/nrf/mpconfigport.h index 243c30809a..dc7c3b1ea4 100644 --- a/ports/nrf/mpconfigport.h +++ b/ports/nrf/mpconfigport.h @@ -295,14 +295,6 @@ typedef int mp_int_t; // must be pointer size typedef unsigned int mp_uint_t; // must be pointer size typedef long mp_off_t; -// extra built in modules to add to the list of known ones -extern const struct _mp_obj_module_t board_module; -extern const struct _mp_obj_module_t nrf_module; -extern const struct _mp_obj_module_t mp_module_utime; -extern const struct _mp_obj_module_t mp_module_uos; -extern const struct _mp_obj_module_t mp_module_ubluepy; -extern const struct _mp_obj_module_t music_module; - #if BOARD_SPECIFIC_MODULES #include "boardmodules.h" #endif // BOARD_SPECIFIC_MODULES @@ -314,7 +306,6 @@ extern const struct _mp_obj_module_t music_module; // extra constants #define MICROPY_PORT_CONSTANTS \ - { MP_ROM_QSTR(MP_QSTR_board), MP_ROM_PTR(&board_module) }, \ { MP_ROM_QSTR(MP_QSTR_machine), MP_ROM_PTR(&mp_module_machine) }, \ #define MP_STATE_PORT MP_STATE_VM