Skip to content

Commit 92092f0

Browse files
committed
extmod/modasyncio.c: Drop set_result and set_exception.
Signed-off-by: James Ward <james@notjam.es>
1 parent 5ecb859 commit 92092f0

File tree

1 file changed

+0
-16
lines changed

1 file changed

+0
-16
lines changed

extmod/modasyncio.c

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -230,11 +230,6 @@ STATIC mp_obj_t task_get_coro(mp_obj_t self_in) {
230230
}
231231
STATIC MP_DEFINE_CONST_FUN_OBJ_1(task_get_coro_obj, task_get_coro);
232232

233-
STATIC mp_obj_t task_set_exception(mp_obj_t self_in, const mp_obj_t arg) {
234-
mp_raise_msg(&mp_type_RuntimeError, NULL);
235-
}
236-
STATIC MP_DEFINE_CONST_FUN_OBJ_2(task_set_exception_obj, task_set_exception);
237-
238233
STATIC mp_obj_t task_exception(mp_obj_t self_in) {
239234
mp_obj_task_t *self = MP_OBJ_TO_PTR(self_in);
240235

@@ -261,11 +256,6 @@ STATIC mp_obj_t task_exception(mp_obj_t self_in) {
261256
}
262257
STATIC MP_DEFINE_CONST_FUN_OBJ_1(task_exception_obj, task_exception);
263258

264-
STATIC mp_obj_t task_set_result(mp_obj_t self_in, const mp_obj_t arg) {
265-
mp_raise_msg(&mp_type_RuntimeError, NULL);
266-
}
267-
STATIC MP_DEFINE_CONST_FUN_OBJ_2(task_set_result_obj, task_set_result);
268-
269259
STATIC mp_obj_t task_result(mp_obj_t self_in) {
270260
mp_obj_task_t *self = MP_OBJ_TO_PTR(self_in);
271261

@@ -375,15 +365,9 @@ STATIC void task_attr(mp_obj_t self_in, qstr attr, mp_obj_t *dest) {
375365
} else if (attr == MP_QSTR_get_coro) {
376366
dest[0] = MP_OBJ_FROM_PTR(&task_get_coro_obj);
377367
dest[1] = self_in;
378-
} else if (attr == MP_QSTR_set_result) {
379-
dest[0] = MP_OBJ_FROM_PTR(&task_set_result_obj);
380-
dest[1] = self_in;
381368
} else if (attr == MP_QSTR_result) {
382369
dest[0] = MP_OBJ_FROM_PTR(&task_result_obj);
383370
dest[1] = self_in;
384-
} else if (attr == MP_QSTR_set_exception) {
385-
dest[0] = MP_OBJ_FROM_PTR(&task_set_exception_obj);
386-
dest[1] = self_in;
387371
} else if (attr == MP_QSTR_exception) {
388372
dest[0] = MP_OBJ_FROM_PTR(&task_exception_obj);
389373
dest[1] = self_in;

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy