mirror of
https://github.com/python/cpython.git
synced 2025-11-25 04:34:37 +00:00
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.
This commit is contained in:
parent
7247407c35
commit
4dedd0f0dd
9 changed files with 7 additions and 39 deletions
|
|
@ -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
|
||||
*/
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue