Skip to content

Commit 8d260d8

Browse files
committed
extmod/modasyncio.c: Rely on the generic hash during runtime.
Signed-off-by: James Ward <james@notjam.es>
1 parent d23edc3 commit 8d260d8

File tree

1 file changed

+1
-11
lines changed

1 file changed

+1
-11
lines changed

extmod/modasyncio.c

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -387,15 +387,6 @@ STATIC void task_attr(mp_obj_t self_in, qstr attr, mp_obj_t *dest) {
387387
}
388388
}
389389

390-
STATIC mp_obj_t task_unary_op(mp_unary_op_t op, mp_obj_t o_in) {
391-
switch (op) {
392-
case MP_UNARY_OP_HASH:
393-
return MP_OBJ_NEW_SMALL_INT((mp_uint_t)o_in);
394-
default:
395-
return MP_OBJ_NULL; // op not supported
396-
}
397-
}
398-
399390
STATIC mp_obj_t task_getiter(mp_obj_t self_in, mp_obj_iter_buf_t *iter_buf) {
400391
(void)iter_buf;
401392
mp_obj_task_t *self = MP_OBJ_TO_PTR(self_in);
@@ -439,8 +430,7 @@ STATIC MP_DEFINE_CONST_OBJ_TYPE(
439430
MP_TYPE_FLAG_ITER_IS_CUSTOM,
440431
make_new, task_make_new,
441432
attr, task_attr,
442-
iter, &task_getiter_iternext,
443-
unary_op, task_unary_op
433+
iter, &task_getiter_iternext
444434
);
445435

446436
/******************************************************************************/

0 commit comments

Comments
 (0)