summaryrefslogtreecommitdiffstats
path: root/Modules/gcmodule.c
diff options
context:
space:
mode:
authorKristján Valur Jónsson <kristjan@ccpgames.com>2012-04-08 13:56:25 (GMT)
committerKristján Valur Jónsson <kristjan@ccpgames.com>2012-04-08 13:56:25 (GMT)
commite6385138567a9e5cb21a89405da05c20f1617feb (patch)
tree4f7577977da069ca9c0bbaa9cf05c33dc05269bc /Modules/gcmodule.c
parent452806c8e30c8ef5bfbbb7a7f046a4a2cd9e443e (diff)
downloadcpython-e6385138567a9e5cb21a89405da05c20f1617feb.zip
cpython-e6385138567a9e5cb21a89405da05c20f1617feb.tar.gz
cpython-e6385138567a9e5cb21a89405da05c20f1617feb.tar.bz2
Remove unused variable from gcmodule.c. The code no longer tests for the
presence of a __del__ attribute on objects, rather it uses the tp_del slot.
Diffstat (limited to 'Modules/gcmodule.c')
-rw-r--r--Modules/gcmodule.c9
1 files changed, 0 insertions, 9 deletions
diff --git a/Modules/gcmodule.c b/Modules/gcmodule.c
index 1876e93..d8893d1 100644
--- a/Modules/gcmodule.c
+++ b/Modules/gcmodule.c
@@ -65,9 +65,6 @@ static PyObject *garbage = NULL;
/* Python string to use if unhandled exception occurs */
static PyObject *gc_str = NULL;
-/* Python string used to look for __del__ attribute. */
-static PyObject *delstr = NULL;
-
/* This is the number of objects who survived the last full collection. It
approximates the number of long lived objects tracked by the GC.
@@ -802,12 +799,6 @@ collect(int generation)
PyGC_Head *gc;
double t1 = 0.0;
- if (delstr == NULL) {
- delstr = PyUnicode_InternFromString("__del__");
- if (delstr == NULL)
- Py_FatalError("gc couldn't allocate \"__del__\"");
- }
-
if (debug & DEBUG_STATS) {
PySys_WriteStderr("gc: collecting generation %d...\n",
generation);