diff options
author | Damien George <damien.p.george@gmail.com> | 2019-05-09 13:49:07 +1000 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2019-05-09 13:49:07 +1000 |
commit | 4268d0e1ace8ec42f08c7be328a5e5de21653b48 (patch) | |
tree | 856015b7c5a8d94bce26606a3c85c83583ca546a | |
parent | dac9d4767175541aaaaf0e2f873322f5f1db3b0c (diff) |
py/objgenerator: Remove unneeded forward decl and clean up white space.
-rw-r--r-- | py/objgenerator.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/py/objgenerator.c b/py/objgenerator.c index 92bafea6a..29c7cb16d 100644 --- a/py/objgenerator.c +++ b/py/objgenerator.c @@ -3,7 +3,7 @@ * * The MIT License (MIT) * - * Copyright (c) 2013, 2014 Damien P. George + * Copyright (c) 2013-2019 Damien P. George * Copyright (c) 2014-2017 Paul Sokolovsky * * Permission is hereby granted, free of charge, to any person obtaining a copy @@ -247,10 +247,8 @@ STATIC mp_obj_t gen_instance_send(mp_obj_t self_in, mp_obj_t send_value) { return ret; } } - STATIC MP_DEFINE_CONST_FUN_OBJ_2(gen_instance_send_obj, gen_instance_send); -STATIC mp_obj_t gen_instance_close(mp_obj_t self_in); STATIC mp_obj_t gen_instance_throw(size_t n_args, const mp_obj_t *args) { // The signature of this function is: throw(type[, value[, traceback]]) // CPython will pass all given arguments through the call chain and process them @@ -276,7 +274,6 @@ STATIC mp_obj_t gen_instance_throw(size_t n_args, const mp_obj_t *args) { return ret; } } - STATIC MP_DEFINE_CONST_FUN_OBJ_VAR_BETWEEN(gen_instance_throw_obj, 2, 4, gen_instance_throw); STATIC mp_obj_t gen_instance_close(mp_obj_t self_in) { @@ -298,7 +295,6 @@ STATIC mp_obj_t gen_instance_close(mp_obj_t self_in) { return mp_const_none; } } - STATIC MP_DEFINE_CONST_FUN_OBJ_1(gen_instance_close_obj, gen_instance_close); STATIC mp_obj_t gen_instance_pend_throw(mp_obj_t self_in, mp_obj_t exc_in) { |