summaryrefslogtreecommitdiffstats
path: root/Objects
diff options
context:
space:
mode:
authorTim Peters <tim.peters@gmail.com>2006-04-15 22:51:26 (GMT)
committerTim Peters <tim.peters@gmail.com>2006-04-15 22:51:26 (GMT)
commitffe23957770437ff7ce223c1790b8eb9c7b82800 (patch)
tree969221e08806820f8d661d7cd74070791144c3b7 /Objects
parent60eab2b6769dd5e2ac6a35e24afe7e2973ad7b95 (diff)
downloadcpython-ffe23957770437ff7ce223c1790b8eb9c7b82800.zip
cpython-ffe23957770437ff7ce223c1790b8eb9c7b82800.tar.gz
cpython-ffe23957770437ff7ce223c1790b8eb9c7b82800.tar.bz2
Remove now-unused variables from tp_traverse and tp_clear methods.
Diffstat (limited to 'Objects')
-rw-r--r--Objects/listobject.c1
-rw-r--r--Objects/typeobject.c2
2 files changed, 0 insertions, 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);