[Python-checkins] r45446 - python/trunk/Objects/listobject.c python/trunk/Objects/typeobject.c
tim.peters
python-checkins at python.org
Sun Apr 16 00:51:27 CEST 2006
Author: tim.peters
Date: Sun Apr 16 00:51:26 2006
New Revision: 45446
Modified:
python/trunk/Objects/listobject.c
python/trunk/Objects/typeobject.c
Log:
Remove now-unused variables from tp_traverse and tp_clear methods.
Modified: python/trunk/Objects/listobject.c
==============================================================================
--- python/trunk/Objects/listobject.c (original)
+++ python/trunk/Objects/listobject.c Sun Apr 16 00:51:26 2006
@@ -2274,7 +2274,6 @@
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]);
Modified: python/trunk/Objects/typeobject.c
==============================================================================
--- python/trunk/Objects/typeobject.c (original)
+++ python/trunk/Objects/typeobject.c Sun Apr 16 00:51:26 2006
@@ -2213,8 +2213,6 @@
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);
More information about the Python-checkins
mailing list