From e53640f706d6202c3e5a2f3156acf80bea2ad1e9 Mon Sep 17 00:00:00 2001 From: Stefan Behnel Date: Fri, 29 Apr 2011 18:06:23 +0200 Subject: [PATCH] drop dead code (s1!=s2 => s1==s2==None is False) --- Cython/Compiler/ExprNodes.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/Cython/Compiler/ExprNodes.py b/Cython/Compiler/ExprNodes.py index 7fc9f6dd..7756b240 100755 --- a/Cython/Compiler/ExprNodes.py +++ b/Cython/Compiler/ExprNodes.py @@ -6868,8 +6868,6 @@ static CYTHON_INLINE int __Pyx_PyUnicode_Equals(PyObject* s1, PyObject* s2, int return -1; return (equals == Py_EQ) ? (result == 0) : (result != 0); } - } else if ((s1 == Py_None) & (s2 == Py_None)) { - return (equals == Py_EQ); } else if ((s1 == Py_None) & PyUnicode_CheckExact(s2)) { return (equals == Py_NE); } else if ((s2 == Py_None) & PyUnicode_CheckExact(s1)) { -- 2.26.2