From de7e3607b01538f6f094dececb36293016931e04 Mon Sep 17 00:00:00 2001 From: Damien George Date: Wed, 14 Jan 2026 12:34:02 +1100 Subject: [PATCH] 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 --- ports/pic16bit/main.c | 5 ----- ports/pic16bit/mpconfigport.h | 4 ---- 2 files changed, 9 deletions(-) diff --git a/ports/pic16bit/main.c b/ports/pic16bit/main.c index 437f91ca7c..076d85e6df 100644 --- a/ports/pic16bit/main.c +++ b/ports/pic16bit/main.c @@ -110,11 +110,6 @@ mp_import_stat_t mp_import_stat(const char *path) { return MP_IMPORT_STAT_NO_EXIST; } -mp_obj_t mp_builtin_open(size_t n_args, const mp_obj_t *args, mp_map_t *kwargs) { - return mp_const_none; -} -MP_DEFINE_CONST_FUN_OBJ_KW(mp_builtin_open_obj, 1, mp_builtin_open); - void nlr_jump_fail(void *val) { while (1) { ; diff --git a/ports/pic16bit/mpconfigport.h b/ports/pic16bit/mpconfigport.h index c7c7eec9d2..22c01a6815 100644 --- a/ports/pic16bit/mpconfigport.h +++ b/ports/pic16bit/mpconfigport.h @@ -79,10 +79,6 @@ typedef int mp_off_t; -// extra builtin names to add to the global namespace -#define MICROPY_PORT_BUILTINS \ - { MP_ROM_QSTR(MP_QSTR_open), MP_ROM_PTR(&mp_builtin_open_obj) }, - #define MP_STATE_PORT MP_STATE_VM #define MICROPY_MPHALPORT_H "pic16bit_mphal.h"