diff options
author | Victor Stinner <vstinner@python.org> | 2019-11-20 11:59:12 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-11-20 11:59:12 (GMT) |
commit | 4dedd0f0ddc5a983a57bf0105eb34f948a91d2c4 (patch) | |
tree | 9b78468c58157901a86b70427eb97344b22634a4 /Objects | |
parent | 7247407c35330f3f6292f1d40606b7ba6afd5700 (diff) | |
download | cpython-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 'Objects')
-rw-r--r-- | Objects/classobject.c | 14 | ||||
-rw-r--r-- | Objects/methodobject.c | 15 |
2 files changed, 0 insertions, 29 deletions
diff --git a/Objects/classobject.c b/Objects/classobject.c index d3fc726..db53f04 100644 --- a/Objects/classobject.c +++ b/Objects/classobject.c @@ -371,20 +371,6 @@ PyTypeObject PyMethod_Type = { method_new, /* tp_new */ }; -/* Clear out the free list */ - -int -PyMethod_ClearFreeList(void) -{ - return 0; -} - -void -_PyMethod_Fini(void) -{ - (void)PyMethod_ClearFreeList(); -} - /* ------------------------------------------------------------------------ * instance method */ diff --git a/Objects/methodobject.c b/Objects/methodobject.c index 8f752c6..6a37238 100644 --- a/Objects/methodobject.c +++ b/Objects/methodobject.c @@ -313,21 +313,6 @@ PyTypeObject PyCFunction_Type = { 0, /* tp_dict */ }; -/* Clear out the free list */ - -int -PyCFunction_ClearFreeList(void) -{ - return 0; -} - -void -_PyCFunction_Fini(void) -{ - (void)PyCFunction_ClearFreeList(); -} - - /* Vectorcall functions for each of the PyCFunction calling conventions, * except for METH_VARARGS (possibly combined with METH_KEYWORDS) which * doesn't use vectorcall. |