mirror of
https://github.com/python/cpython.git
synced 2025-11-17 01:25:57 +00:00
Remove now-unused variables from tp_traverse and tp_clear methods.
This commit is contained in:
parent
60eab2b676
commit
ffe2395777
2 changed files with 0 additions and 3 deletions
|
|
@ -2274,7 +2274,6 @@ static int
|
||||||
list_traverse(PyListObject *o, visitproc visit, void *arg)
|
list_traverse(PyListObject *o, visitproc visit, void *arg)
|
||||||
{
|
{
|
||||||
Py_ssize_t i;
|
Py_ssize_t i;
|
||||||
PyObject *x;
|
|
||||||
|
|
||||||
for (i = o->ob_size; --i >= 0; )
|
for (i = o->ob_size; --i >= 0; )
|
||||||
Py_VISIT(o->ob_item[i]);
|
Py_VISIT(o->ob_item[i]);
|
||||||
|
|
|
||||||
|
|
@ -2213,8 +2213,6 @@ type_traverse(PyTypeObject *type, visitproc visit, void *arg)
|
||||||
static int
|
static int
|
||||||
type_clear(PyTypeObject *type)
|
type_clear(PyTypeObject *type)
|
||||||
{
|
{
|
||||||
PyObject *tmp;
|
|
||||||
|
|
||||||
/* Because of type_is_gc(), the collector only calls this
|
/* Because of type_is_gc(), the collector only calls this
|
||||||
for heaptypes. */
|
for heaptypes. */
|
||||||
assert(type->tp_flags & Py_TPFLAGS_HEAPTYPE);
|
assert(type->tp_flags & Py_TPFLAGS_HEAPTYPE);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue