mirror of
https://github.com/micropython/micropython.git
synced 2026-01-04 19:20:22 +01:00
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).
This commit is contained in:
@@ -106,8 +106,6 @@ mp_obj_t mp_obj_int_binary_op(int op, mp_obj_t lhs_in, mp_obj_t rhs_in) {
|
||||
return MP_BOOL(lhs_val >= rhs_val);
|
||||
case MP_BINARY_OP_EQUAL:
|
||||
return MP_BOOL(lhs_val == rhs_val);
|
||||
case MP_BINARY_OP_NOT_EQUAL:
|
||||
return MP_BOOL(lhs_val != rhs_val);
|
||||
|
||||
default:
|
||||
// op not supported
|
||||
|
||||
Reference in New Issue
Block a user