Skip to content

Commit de7e360

Browse files
committed
pic16bit/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 8834330 commit de7e360

2 files changed

Lines changed: 0 additions & 9 deletions

File tree

ports/pic16bit/main.c

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

113-
mp_obj_t mp_builtin_open(size_t n_args, const mp_obj_t *args, mp_map_t *kwargs) {
114-
return mp_const_none;
115-
}
116-
MP_DEFINE_CONST_FUN_OBJ_KW(mp_builtin_open_obj, 1, mp_builtin_open);
117-
118113
void nlr_jump_fail(void *val) {
119114
while (1) {
120115
;

ports/pic16bit/mpconfigport.h

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

8080
typedef int mp_off_t;
8181

82-
// extra builtin names to add to the global namespace
83-
#define MICROPY_PORT_BUILTINS \
84-
{ MP_ROM_QSTR(MP_QSTR_open), MP_ROM_PTR(&mp_builtin_open_obj) },
85-
8682
#define MP_STATE_PORT MP_STATE_VM
8783

8884
#define MICROPY_MPHALPORT_H "pic16bit_mphal.h"

0 commit comments

Comments
 (0)