summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Include/object.h1
-rw-r--r--Objects/object.c7
-rw-r--r--Python/pythonrun.c4
3 files changed, 0 insertions, 12 deletions
diff --git a/Include/object.h b/Include/object.h
index d045be1..5e509b4 100644
--- a/Include/object.h
+++ b/Include/object.h
@@ -559,7 +559,6 @@ PyAPI_FUNC(void) _Py_NewReference(PyObject *);
PyAPI_FUNC(void) _Py_ForgetReference(PyObject *);
PyAPI_FUNC(void) _Py_Dealloc(PyObject *);
PyAPI_FUNC(void) _Py_PrintReferences(FILE *);
-PyAPI_FUNC(void) _Py_ResetReferences(void);
#else
/* Without Py_TRACE_REFS, there's little enough to do that we expand code
diff --git a/Objects/object.c b/Objects/object.c
index 20a6a93..3328643 100644
--- a/Objects/object.c
+++ b/Objects/object.c
@@ -1909,13 +1909,6 @@ _Py_ReadyTypes(void)
static PyObject refchain = {&refchain, &refchain};
void
-_Py_ResetReferences(void)
-{
- refchain._ob_prev = refchain._ob_next = &refchain;
- _Py_RefTotal = 0;
-}
-
-void
_Py_NewReference(PyObject *op)
{
_Py_INC_REFTOTAL;
diff --git a/Python/pythonrun.c b/Python/pythonrun.c
index b85c390..c2508fa 100644
--- a/Python/pythonrun.c
+++ b/Python/pythonrun.c
@@ -277,10 +277,6 @@ Py_Finalize(void)
#endif
call_ll_exitfuncs();
-
-#ifdef Py_TRACE_REFS
- _Py_ResetReferences();
-#endif /* Py_TRACE_REFS */
}
/* Create and initialize a new interpreter and thread, and return the