Skip to content

Commit 8b201dc

Browse files
committed
py: Remove support for MICROPY_PORT_BUILTIN_MODULES.
This functionality is now replaced with MP_REGISTER_MODULE. Signed-off-by: Jim Mussared <[email protected]>
1 parent c2d889f commit 8b201dc

File tree

2 files changed

+0
-8
lines changed

2 files changed

+0
-8
lines changed

py/mpconfig.h

-5
Original file line numberDiff line numberDiff line change
@@ -1649,11 +1649,6 @@ typedef double mp_float_t;
16491649
#define MICROPY_PORT_EXTRA_BUILTINS
16501650
#endif
16511651

1652-
// Additional builtin module definitions - see objmodule.c:mp_builtin_module_table for format.
1653-
#ifndef MICROPY_PORT_BUILTIN_MODULES
1654-
#define MICROPY_PORT_BUILTIN_MODULES
1655-
#endif
1656-
16571652
// Additional constant definitions for the compiler - see compile.c:mp_constants_table.
16581653
#ifndef MICROPY_PORT_CONSTANTS
16591654
#define MICROPY_PORT_CONSTANTS

py/objmodule.c

-3
Original file line numberDiff line numberDiff line change
@@ -161,9 +161,6 @@ mp_obj_t mp_obj_new_module(qstr module_name) {
161161
// Global module table and related functions
162162

163163
STATIC const mp_rom_map_elem_t mp_builtin_module_table[] = {
164-
// extra builtin modules as defined by a port
165-
MICROPY_PORT_BUILTIN_MODULES
166-
167164
#ifdef MICROPY_REGISTERED_MODULES
168165
// builtin modules declared with MP_REGISTER_MODULE()
169166
MICROPY_REGISTERED_MODULES

0 commit comments

Comments
 (0)