mirror of
https://github.com/micropython/micropython.git
synced 2026-03-11 19:30:28 +01:00
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>
This commit is contained in:
@@ -115,11 +115,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) {
|
||||
;
|
||||
|
||||
@@ -94,10 +94,6 @@
|
||||
|
||||
typedef long mp_off_t;
|
||||
|
||||
// extra built in 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 MICROPY_HW_BOARD_NAME "bare-metal"
|
||||
#define MICROPY_HW_MCU_NAME "POWERPC"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user