Skip to content

Commit 1e164be

Browse files
committed
powerpc/mpconfigport: Remove dummy builtins.open function.
The function does nothing so it's better that it doesn't exist at all. Signed-off-by: Damien George <damien@micropython.org>
1 parent de7e360 commit 1e164be

2 files changed

Lines changed: 0 additions & 9 deletions

File tree

ports/powerpc/main.c

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -115,11 +115,6 @@ mp_import_stat_t mp_import_stat(const char *path) {
115115
return MP_IMPORT_STAT_NO_EXIST;
116116
}
117117

118-
mp_obj_t mp_builtin_open(size_t n_args, const mp_obj_t *args, mp_map_t *kwargs) {
119-
return mp_const_none;
120-
}
121-
MP_DEFINE_CONST_FUN_OBJ_KW(mp_builtin_open_obj, 1, mp_builtin_open);
122-
123118
void nlr_jump_fail(void *val) {
124119
while (1) {
125120
;

ports/powerpc/mpconfigport.h

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -94,10 +94,6 @@
9494

9595
typedef long mp_off_t;
9696

97-
// extra built in names to add to the global namespace
98-
#define MICROPY_PORT_BUILTINS \
99-
{ MP_ROM_QSTR(MP_QSTR_open), MP_ROM_PTR(&mp_builtin_open_obj) },
100-
10197
#define MICROPY_HW_BOARD_NAME "bare-metal"
10298
#define MICROPY_HW_MCU_NAME "POWERPC"
10399

0 commit comments

Comments
 (0)