summaryrefslogtreecommitdiff
path: root/py/objset.c
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2014-04-12 00:20:39 +0100
committerDamien George <damien.p.george@gmail.com>2014-04-12 00:20:39 +0100
commit8f1931754002b0904c62e481d9dcae2f6e1913e2 (patch)
treed1decdf54dedd0177d6d5f4058c5cd2b3fa99b1f /py/objset.c
parentdb049c2e00e80e16ea55ffbdabdc353e152a8320 (diff)
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/objset.c')
-rw-r--r--py/objset.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/py/objset.c b/py/objset.c
index 448f484d5..05d064a04 100644
--- a/py/objset.c
+++ b/py/objset.c
@@ -411,8 +411,6 @@ STATIC mp_obj_t set_binary_op(int op, mp_obj_t lhs, mp_obj_t rhs) {
return set_issubset(lhs, rhs);
case MP_BINARY_OP_MORE_EQUAL:
return set_issuperset(lhs, rhs);
- case MP_BINARY_OP_NOT_EQUAL:
- return MP_BOOL(set_equal(lhs, rhs) == mp_const_false);
case MP_BINARY_OP_IN:
{
mp_obj_set_t *o = lhs;