mirror of
https://github.com/micropython/micropython.git
synced 2026-03-10 19:00:30 +01:00
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>
This commit is contained in:
@@ -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) {
|
||||
;
|
||||
|
||||
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user