diff options
author | Damien George <damien.p.george@gmail.com> | 2014-02-12 23:02:19 +0000 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2014-02-12 23:02:19 +0000 |
commit | 099a9cb575b254dd9e00fd1c60859aec7299deb7 (patch) | |
tree | 9e5fd851076515e760ad84439c9360ee9410722b /py/objexcept.c | |
parent | 780ba22bb8d4451761952a5401cb15935c8eb4fb (diff) |
Remove mp_obj_new_exception_msg_1_arg and _2_arg.
Diffstat (limited to 'py/objexcept.c')
-rw-r--r-- | py/objexcept.c | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/py/objexcept.c b/py/objexcept.c index eedf05f21..90e2cc73a 100644 --- a/py/objexcept.c +++ b/py/objexcept.c @@ -48,7 +48,7 @@ STATIC mp_obj_t exception_call(mp_obj_t self_in, uint n_args, uint n_kw, const m mp_obj_exception_t *base = self_in; if (n_kw != 0) { - nlr_jump(mp_obj_new_exception_msg_1_arg(MP_QSTR_TypeError, "%s does not take keyword arguments", qstr_str(base->id))); + nlr_jump(mp_obj_new_exception_msg_varg(MP_QSTR_TypeError, "%s does not take keyword arguments", qstr_str(base->id))); } mp_obj_exception_t *o = m_new_obj_var(mp_obj_exception_t, mp_obj_t, n_args); @@ -75,14 +75,6 @@ mp_obj_t mp_obj_new_exception_msg(qstr id, const char *msg) { return mp_obj_new_exception_msg_varg(id, msg); } -mp_obj_t mp_obj_new_exception_msg_1_arg(qstr id, const char *fmt, const char *a1) { - return mp_obj_new_exception_msg_varg(id, fmt, a1); -} - -mp_obj_t mp_obj_new_exception_msg_2_args(qstr id, const char *fmt, const char *a1, const char *a2) { - return mp_obj_new_exception_msg_varg(id, fmt, a1, a2); -} - mp_obj_t mp_obj_new_exception_msg_varg(qstr id, const char *fmt, ...) { // make exception object mp_obj_exception_t *o = m_new_obj_var(mp_obj_exception_t, mp_obj_t*, 0); |