diff options
author | Damien George <damien.p.george@gmail.com> | 2014-04-12 00:20:39 +0100 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2014-04-12 00:20:39 +0100 |
commit | 8f1931754002b0904c62e481d9dcae2f6e1913e2 (patch) | |
tree | d1decdf54dedd0177d6d5f4058c5cd2b3fa99b1f /py/objint_mpz.c | |
parent | db049c2e00e80e16ea55ffbdabdc353e152a8320 (diff) | |
download | micropython-8f1931754002b0904c62e481d9dcae2f6e1913e2.tar.gz micropython-8f1931754002b0904c62e481d9dcae2f6e1913e2.zip |
py: Remove useless implementations of NOT_EQUAL in binary_op's.
I'm pretty sure these are never reached, since NOT_EQUAL is always
converted into EQUAL in mp_binary_op. No one should call
type.binary_op directly, they should always go through mp_binary_op
(or mp_obj_is_equal).
Diffstat (limited to 'py/objint_mpz.c')
-rw-r--r-- | py/objint_mpz.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/py/objint_mpz.c b/py/objint_mpz.c index 583ce4cb78..2d10ed471b 100644 --- a/py/objint_mpz.c +++ b/py/objint_mpz.c @@ -205,8 +205,6 @@ mp_obj_t mp_obj_int_binary_op(int op, mp_obj_t lhs_in, mp_obj_t rhs_in) { return MP_BOOL(cmp >= 0); case MP_BINARY_OP_EQUAL: return MP_BOOL(cmp == 0); - case MP_BINARY_OP_NOT_EQUAL: - return MP_BOOL(cmp != 0); default: return MP_OBJ_NULL; |