From 0265ae07f81c01b59619287f137f2b8d15e6db20 Mon Sep 17 00:00:00 2001 From: Jeff Epler Date: Fri, 22 Sep 2023 13:55:15 -0500 Subject: [PATCH] remove unused functions --- py/objlist.c | 5 ----- py/objmodule.c | 6 ------ 2 files changed, 11 deletions(-) diff --git a/py/objlist.c b/py/objlist.c index c1be0bdeb7..aa857fbfc0 100644 --- a/py/objlist.c +++ b/py/objlist.c @@ -71,11 +71,6 @@ STATIC mp_obj_t list_extend_from_iter(mp_obj_t list, mp_obj_t iterable) { return list; } -mp_obj_t mp_obj_new_list_from_iter(mp_obj_t iterable) { - mp_obj_t list = mp_obj_new_list(0, NULL); - return list_extend_from_iter(list, iterable); -} - mp_obj_t mp_obj_list_make_new(const mp_obj_type_t *type_in, size_t n_args, size_t n_kw, const mp_obj_t *args) { (void)type_in; mp_arg_check_num(n_args, n_kw, 0, 1, false); diff --git a/py/objmodule.c b/py/objmodule.c index 4358f190fc..63e9fa4757 100644 --- a/py/objmodule.c +++ b/py/objmodule.c @@ -166,12 +166,6 @@ mp_obj_t mp_obj_new_module(qstr module_name) { return MP_OBJ_FROM_PTR(o); } -void mp_obj_module_set_globals(mp_obj_t self_in, mp_obj_dict_t *globals) { - assert(mp_obj_is_type(self_in, &mp_type_module)); - mp_obj_module_t *self = MP_OBJ_TO_PTR(self_in); - self->globals = globals; -} - /******************************************************************************/ // Global module table and related functions