summaryrefslogtreecommitdiffstats
path: root/Include
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@python.org>2019-11-20 11:59:12 (GMT)
committerGitHub <noreply@github.com>2019-11-20 11:59:12 (GMT)
commit4dedd0f0ddc5a983a57bf0105eb34f948a91d2c4 (patch)
tree9b78468c58157901a86b70427eb97344b22634a4 /Include
parent7247407c35330f3f6292f1d40606b7ba6afd5700 (diff)
downloadcpython-4dedd0f0ddc5a983a57bf0105eb34f948a91d2c4.zip
cpython-4dedd0f0ddc5a983a57bf0105eb34f948a91d2c4.tar.gz
cpython-4dedd0f0ddc5a983a57bf0105eb34f948a91d2c4.tar.bz2
bpo-37340: Remove PyMethod_ClearFreeList() and PyCFunction_ClearFreeList() (GH-17284)
Remove PyMethod_ClearFreeList() and PyCFunction_ClearFreeList() functions: the free lists of bound method objects have been removed. Remove also _PyMethod_Fini() and _PyCFunction_Fini() functions.
Diffstat (limited to 'Include')
-rw-r--r--Include/classobject.h2
-rw-r--r--Include/internal/pycore_pylifecycle.h2
-rw-r--r--Include/methodobject.h2
3 files changed, 0 insertions, 6 deletions
diff --git a/Include/classobject.h b/Include/classobject.h
index c83303c..840431a 100644
--- a/Include/classobject.h
+++ b/Include/classobject.h
@@ -33,8 +33,6 @@ PyAPI_FUNC(PyObject *) PyMethod_Self(PyObject *);
#define PyMethod_GET_SELF(meth) \
(((PyMethodObject *)meth) -> im_self)
-PyAPI_FUNC(int) PyMethod_ClearFreeList(void);
-
typedef struct {
PyObject_HEAD
PyObject *func;
diff --git a/Include/internal/pycore_pylifecycle.h b/Include/internal/pycore_pylifecycle.h
index b8d5e36..c837bcd 100644
--- a/Include/internal/pycore_pylifecycle.h
+++ b/Include/internal/pycore_pylifecycle.h
@@ -59,9 +59,7 @@ extern PyStatus _PyGC_Init(PyThreadState *tstate);
/* Various internal finalizers */
-extern void _PyMethod_Fini(void);
extern void _PyFrame_Fini(void);
-extern void _PyCFunction_Fini(void);
extern void _PyDict_Fini(void);
extern void _PyTuple_Fini(void);
extern void _PyList_Fini(void);
diff --git a/Include/methodobject.h b/Include/methodobject.h
index 3bccf5a..a15d05f 100644
--- a/Include/methodobject.h
+++ b/Include/methodobject.h
@@ -97,8 +97,6 @@ typedef struct {
} PyCFunctionObject;
#endif
-PyAPI_FUNC(int) PyCFunction_ClearFreeList(void);
-
#ifdef __cplusplus
}
#endif