From: Stefan Behnel Date: Fri, 29 Apr 2011 16:06:23 +0000 (+0200) Subject: drop dead code (s1!=s2 => s1==s2==None is False) X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=e53640f706d6202c3e5a2f3156acf80bea2ad1e9;p=cython.git drop dead code (s1!=s2 => s1==s2==None is False) --- 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)) {