summaryrefslogtreecommitdiff
path: root/py/obj.c
diff options
context:
space:
mode:
Diffstat (limited to 'py/obj.c')
-rw-r--r--py/obj.c9
1 files changed, 0 insertions, 9 deletions
diff --git a/py/obj.c b/py/obj.c
index 3b0fd171c..7e26d4c7f 100644
--- a/py/obj.c
+++ b/py/obj.c
@@ -594,12 +594,3 @@ void mp_get_buffer_raise(mp_obj_t obj, mp_buffer_info_t *bufinfo, mp_uint_t flag
mp_raise_TypeError(MP_ERROR_TEXT("object with buffer protocol required"));
}
}
-
-mp_obj_t mp_generic_unary_op(mp_unary_op_t op, mp_obj_t o_in) {
- switch (op) {
- case MP_UNARY_OP_HASH:
- return MP_OBJ_NEW_SMALL_INT((mp_uint_t)o_in);
- default:
- return MP_OBJ_NULL; // op not supported
- }
-}