summaryrefslogtreecommitdiffstats
path: root/Objects/object.c
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@python.org>2020-02-05 11:18:28 (GMT)
committerGitHub <noreply@github.com>2020-02-05 11:18:28 (GMT)
commitf16433a73138f279642e581074135694ddcfe965 (patch)
treeb115e194f876673ec7e53a2e7bcc0aa0999f7521 /Objects/object.c
parent787b6d548c250f36df6d3f3179f60d754c8aa5e3 (diff)
downloadcpython-f16433a73138f279642e581074135694ddcfe965.zip
cpython-f16433a73138f279642e581074135694ddcfe965.tar.gz
cpython-f16433a73138f279642e581074135694ddcfe965.tar.bz2
bpo-39543: Remove unused _Py_Dealloc() macro (GH-18361)
The macro is defined after Py_DECREF() and so is no longer used by Py_DECREF(). Moving _Py_Dealloc() macro back from cpython/object.h to object.h would require to move a lot of definitions as well: PyTypeObject and many related types used by PyTypeObject. Keep _Py_Dealloc() as an opaque function call to avoid leaking implementation details in the limited C API (object.h): remove _Py_Dealloc() macro from cpython/object.h.
Diffstat (limited to 'Objects/object.c')
-rw-r--r--Objects/object.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/Objects/object.c b/Objects/object.c
index e6bfad4..1884819 100644
--- a/Objects/object.c
+++ b/Objects/object.c
@@ -2162,8 +2162,6 @@ _PyObject_AssertFailed(PyObject *obj, const char *expr, const char *msg,
}
-#undef _Py_Dealloc
-
void
_Py_Dealloc(PyObject *op)
{