Remove now-unused variables from tp_traverse and tp_clear methods.

This commit is contained in:
Tim Peters 2006-04-15 22:51:26 +00:00
parent 60eab2b676
commit ffe2395777
2 changed files with 0 additions and 3 deletions

View File

@ -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]);

View File

@ -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);