Skip to content

Commit 2217462

Browse files
authored
bpo-45786: Remove _PyFrame_Fini() and _PyFrame_DebugMallocStats() (GH-31874)
Remove private empty _PyFrame_Fini() and _PyFrame_DebugMallocStats() functions.
1 parent d7a93cb commit 2217462

File tree

5 files changed

+0
-20
lines changed

5 files changed

+0
-20
lines changed

Include/cpython/frameobject.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,4 @@ PyAPI_FUNC(void) PyFrame_LocalsToFast(PyFrameObject *, int);
2222
PyAPI_FUNC(int) PyFrame_FastToLocalsWithError(PyFrameObject *f);
2323
PyAPI_FUNC(void) PyFrame_FastToLocals(PyFrameObject *);
2424

25-
PyAPI_FUNC(void) _PyFrame_DebugMallocStats(FILE *out);
26-
2725
PyAPI_FUNC(PyFrameObject *) PyFrame_GetBack(PyFrameObject *frame);

Include/internal/pycore_frame.h

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,6 @@ struct _frame {
2121

2222
extern PyFrameObject* _PyFrame_New_NoTrack(PyCodeObject *code);
2323

24-
/* runtime lifecycle */
25-
26-
extern void _PyFrame_Fini(PyInterpreterState *interp);
27-
2824

2925
/* other API */
3026

Objects/frameobject.c

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1034,17 +1034,6 @@ PyFrame_LocalsToFast(PyFrameObject *f, int clear)
10341034
_PyFrame_LocalsToFast(f->f_frame, clear);
10351035
}
10361036

1037-
void
1038-
_PyFrame_Fini(PyInterpreterState *interp)
1039-
{
1040-
}
1041-
1042-
/* Print summary info about the state of the optimized allocator */
1043-
void
1044-
_PyFrame_DebugMallocStats(FILE *out)
1045-
{
1046-
}
1047-
10481037

10491038
PyCodeObject *
10501039
PyFrame_GetCode(PyFrameObject *frame)

Objects/object.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2118,7 +2118,6 @@ _PyObject_DebugTypeStats(FILE *out)
21182118
{
21192119
_PyDict_DebugMallocStats(out);
21202120
_PyFloat_DebugMallocStats(out);
2121-
_PyFrame_DebugMallocStats(out);
21222121
_PyList_DebugMallocStats(out);
21232122
_PyTuple_DebugMallocStats(out);
21242123
}

Python/pylifecycle.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
#include "pycore_dict.h" // _PyDict_Fini()
1010
#include "pycore_fileutils.h" // _Py_ResetForceASCII()
1111
#include "pycore_floatobject.h" // _PyFloat_InitTypes()
12-
#include "pycore_frame.h" // _PyFrame_Fini()
1312
#include "pycore_genobject.h" // _PyAsyncGen_Fini()
1413
#include "pycore_import.h" // _PyImport_BootstrapImp()
1514
#include "pycore_initconfig.h" // _PyStatus_OK()
@@ -1667,7 +1666,6 @@ finalize_interp_types(PyInterpreterState *interp)
16671666
_PyUnicode_FiniTypes(interp);
16681667
_PySys_Fini(interp);
16691668
_PyExc_Fini(interp);
1670-
_PyFrame_Fini(interp);
16711669
_PyAsyncGen_Fini(interp);
16721670
_PyContext_Fini(interp);
16731671
_PyFloat_FiniType(interp);

0 commit comments

Comments
 (0)