From ffe23957770437ff7ce223c1790b8eb9c7b82800 Mon Sep 17 00:00:00 2001 From: Tim Peters Date: Sat, 15 Apr 2006 22:51:26 +0000 Subject: Remove now-unused variables from tp_traverse and tp_clear methods. --- Objects/listobject.c | 1 - Objects/typeobject.c | 2 -- 2 files changed, 3 deletions(-) diff --git a/Objects/listobject.c b/Objects/listobject.c index 78961f3..105df4c 100644 --- a/Objects/listobject.c +++ b/Objects/listobject.c @@ -2274,7 +2274,6 @@ static int list_traverse(PyListObject *o, visitproc visit, void *arg) { Py_ssize_t i; - PyObject *x; for (i = o->ob_size; --i >= 0; ) Py_VISIT(o->ob_item[i]); diff --git a/Objects/typeobject.c b/Objects/typeobject.c index 43f0469..47de302 100644 --- a/Objects/typeobject.c +++ b/Objects/typeobject.c @@ -2213,8 +2213,6 @@ type_traverse(PyTypeObject *type, visitproc visit, void *arg) static int type_clear(PyTypeObject *type) { - PyObject *tmp; - /* Because of type_is_gc(), the collector only calls this for heaptypes. */ assert(type->tp_flags & Py_TPFLAGS_HEAPTYPE); -- cgit v0.12