]> granicus.if.org Git - python/commitdiff
Removed two unneeded lines from PyObject_Compare().
authorBrett Cannon <bcannon@gmail.com>
Tue, 27 Jan 2004 20:17:54 +0000 (20:17 +0000)
committerBrett Cannon <bcannon@gmail.com>
Tue, 27 Jan 2004 20:17:54 +0000 (20:17 +0000)
Closes bug #885293 (thanks, Josiah Carlson).

Objects/object.c

index 5b61d84e4cbdc1f41a93b6a51ab4ef7094744e49..b913a064dfecdb822bd65830454c7d490ac11a7c 100644 (file)
@@ -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);