diff options
author | Antoine Pitrou <solipsis@pitrou.net> | 2011-01-04 00:00:31 (GMT) |
---|---|---|
committer | Antoine Pitrou <solipsis@pitrou.net> | 2011-01-04 00:00:31 (GMT) |
commit | 23683ef26d19581a61594c76a45af014c1ff7b13 (patch) | |
tree | 2b3f875d4b8359616777772cb7f557d969963e9d /Include | |
parent | cae969e70afd4e02d9543c3a18f089a1c66de982 (diff) | |
download | cpython-23683ef26d19581a61594c76a45af014c1ff7b13.zip cpython-23683ef26d19581a61594c76a45af014c1ff7b13.tar.gz cpython-23683ef26d19581a61594c76a45af014c1ff7b13.tar.bz2 |
Issue #10333: Remove ancient GC API, which has been deprecated since
Python 2.2.
Diffstat (limited to 'Include')
-rw-r--r-- | Include/objimpl.h | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/Include/objimpl.h b/Include/objimpl.h index 3fef376..8fc3fc1 100644 --- a/Include/objimpl.h +++ b/Include/objimpl.h @@ -242,9 +242,6 @@ PyAPI_FUNC(PyVarObject *) _PyObject_GC_Resize(PyVarObject *, Py_ssize_t); #define PyObject_GC_Resize(type, op, n) \ ( (type *) _PyObject_GC_Resize((PyVarObject *)(op), (n)) ) -/* for source compatibility with 2.2 */ -#define _PyObject_GC_Del PyObject_GC_Del - /* GC information is stored BEFORE the object structure. */ #ifndef Py_LIMITED_API typedef union _gc_head { @@ -328,15 +325,6 @@ PyAPI_FUNC(void) PyObject_GC_Del(void *); } \ } while (0) -/* This is here for the sake of backwards compatibility. Extensions that - * use the old GC API will still compile but the objects will not be - * tracked by the GC. */ -#define PyGC_HEAD_SIZE 0 -#define PyObject_GC_Init(op) -#define PyObject_GC_Fini(op) -#define PyObject_AS_GC(op) (op) -#define PyObject_FROM_GC(op) (op) - /* Test if a type supports weak references */ #define PyType_SUPPORTS_WEAKREFS(t) ((t)->tp_weaklistoffset > 0) |