summaryrefslogtreecommitdiffstats
path: root/Objects/typeobject.c
diff options
context:
space:
mode:
Diffstat (limited to 'Objects/typeobject.c')
-rw-r--r--Objects/typeobject.c13
1 files changed, 0 insertions, 13 deletions
diff --git a/Objects/typeobject.c b/Objects/typeobject.c
index cc95b98..2068d6a 100644
--- a/Objects/typeobject.c
+++ b/Objects/typeobject.c
@@ -2355,16 +2355,6 @@ subtype_traverse(PyObject *self, visitproc visit, void *arg)
return 0;
}
-
-static int
-plain_object_traverse(PyObject *self, visitproc visit, void *arg)
-{
- PyTypeObject *type = Py_TYPE(self);
- assert(type->tp_flags & Py_TPFLAGS_MANAGED_DICT);
- Py_VISIT(type);
- return PyObject_VisitManagedDict(self, visit, arg);
-}
-
static void
clear_slots(PyTypeObject *type, PyObject *self)
{
@@ -4157,9 +4147,6 @@ type_new_descriptors(const type_new_ctx *ctx, PyTypeObject *type)
assert((type->tp_flags & Py_TPFLAGS_MANAGED_DICT) == 0);
type->tp_flags |= Py_TPFLAGS_MANAGED_DICT;
type->tp_dictoffset = -1;
- if (type->tp_basicsize == sizeof(PyObject)) {
- type->tp_traverse = plain_object_traverse;
- }
}
type->tp_basicsize = slotoffset;