From: Brett Cannon Date: Tue, 27 Jan 2004 20:17:54 +0000 (+0000) Subject: Removed two unneeded lines from PyObject_Compare(). X-Git-Tag: v2.4a1~891 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=fb5a4e33fb04fcfe380bc7e5c9e52582b5dbb2da;p=thirdparty%2FPython%2Fcpython.git Removed two unneeded lines from PyObject_Compare(). Closes bug #885293 (thanks, Josiah Carlson). --- diff --git a/Objects/object.c b/Objects/object.c index 5b61d84e4cbd..b913a064dfec 100644 --- a/Objects/object.c +++ b/Objects/object.c @@ -746,7 +746,6 @@ do_cmp(PyObject *v, PyObject *w) int PyObject_Compare(PyObject *v, PyObject *w) { - PyTypeObject *vtp; int result; if (v == NULL || w == NULL) { @@ -755,7 +754,6 @@ PyObject_Compare(PyObject *v, PyObject *w) } if (v == w) return 0; - vtp = v->ob_type; if (Py_EnterRecursiveCall(" in cmp")) return -1; result = do_cmp(v, w);