summaryrefslogtreecommitdiff
path: root/py/obj.h
diff options
context:
space:
mode:
authorDamien George <damien@micropython.org>2025-08-11 16:35:16 +1000
committerDamien George <damien@micropython.org>2025-08-15 11:45:11 +1000
commit40cc4e4f74b1f39076100136bc2cb8db5ff24ea5 (patch)
treef5d6c489664a5a3923ee71bf429417e94a70d068 /py/obj.h
parent3efbd726eb89a1514c01a51857100b2718f12a50 (diff)
py/objtype: Make mp_obj_new_type a static function.
It's only used once, in the same file it's defined, and making it static reduces code size. Along with this, the associated example code comment in `ports/unix/main.c` has been removed. Signed-off-by: Damien George <damien@micropython.org>
Diffstat (limited to 'py/obj.h')
-rw-r--r--py/obj.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/py/obj.h b/py/obj.h
index 4ac0cc0c6..69d6e626d 100644
--- a/py/obj.h
+++ b/py/obj.h
@@ -987,7 +987,6 @@ void *mp_obj_malloc_with_finaliser_helper(size_t num_bytes, const mp_obj_type_t
bool mp_obj_is_dict_or_ordereddict(mp_obj_t o);
#define mp_obj_is_fun(o) (mp_obj_is_obj(o) && (((mp_obj_base_t *)MP_OBJ_TO_PTR(o))->type->name == MP_QSTR_function))
-mp_obj_t mp_obj_new_type(qstr name, mp_obj_t bases_tuple, mp_obj_t locals_dict);
static inline mp_obj_t mp_obj_new_bool(mp_int_t x) {
return x ? mp_const_true : mp_const_false;
}