summaryrefslogtreecommitdiff
path: root/py/obj.h
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/obj.h
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/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 d41511b0e..04c153f50 100644
--- a/py/obj.h
+++ b/py/obj.h
@@ -1016,7 +1016,6 @@ mp_obj_t mp_obj_id(mp_obj_t o_in);
mp_obj_t mp_obj_len(mp_obj_t o_in);
mp_obj_t mp_obj_len_maybe(mp_obj_t o_in); // may return MP_OBJ_NULL
mp_obj_t mp_obj_subscr(mp_obj_t base, mp_obj_t index, mp_obj_t val);
-mp_obj_t mp_generic_unary_op(mp_unary_op_t op, mp_obj_t o_in);
// cell