summaryrefslogtreecommitdiff
path: root/py/objnone.c
diff options
context:
space:
mode:
authorDavid Lechner <david@pybricks.com>2022-12-27 16:30:05 -0600
committerDamien George <damien@micropython.org>2023-05-19 12:04:44 +1000
commiteaccaa36771f784dfb458b8ba3591f11513824e6 (patch)
tree7ecce76ccff90c6b0b4093e830edc7aff0c7d892 /py/objnone.c
parent53cb073571196d2ba7174706d5d784e42e5430cf (diff)
py/obj: Remove mp_generic_unary_op().
Since converting to variable sized slots in mp_obj_type_t, we can now reduce the code size a bit by removing mp_generic_unary_op() and the corresponding slots where it is used. Instead we just implement the generic `__hash__` operation in the runtime. Signed-off-by: David Lechner <david@pybricks.com>
Diffstat (limited to 'py/objnone.c')
-rw-r--r--py/objnone.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/py/objnone.c b/py/objnone.c
index 4f8996e89..4b0696d3a 100644
--- a/py/objnone.c
+++ b/py/objnone.c
@@ -47,8 +47,7 @@ MP_DEFINE_CONST_OBJ_TYPE(
mp_type_NoneType,
MP_QSTR_NoneType,
MP_TYPE_FLAG_NONE,
- print, none_print,
- unary_op, mp_generic_unary_op
+ print, none_print
);
#if !MICROPY_OBJ_IMMEDIATE_OBJS