summaryrefslogtreecommitdiff
path: root/py/profile.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/profile.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/profile.c')
-rw-r--r--py/profile.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/py/profile.c b/py/profile.c
index fd2d61caa..89af8640a 100644
--- a/py/profile.c
+++ b/py/profile.c
@@ -177,7 +177,6 @@ MP_DEFINE_CONST_OBJ_TYPE(
MP_QSTR_code,
MP_TYPE_FLAG_NONE,
print, code_print,
- unary_op, mp_generic_unary_op,
attr, code_attr
);
@@ -247,7 +246,6 @@ MP_DEFINE_CONST_OBJ_TYPE(
MP_QSTR_frame,
MP_TYPE_FLAG_NONE,
print, frame_print,
- unary_op, mp_generic_unary_op,
attr, frame_attr
);