[Python-checkins] bpo-46670: Remove unused get_frame_state() function (GH-31177)

vstinner webhook-mailer at python.org
Sun Feb 6 19:25:48 EST 2022


https://github.com/python/cpython/commit/16f96a4cf9ab1e91e6e8e18232378bc4b42bb796
commit: 16f96a4cf9ab1e91e6e8e18232378bc4b42bb796
branch: main
author: Victor Stinner <vstinner at python.org>
committer: vstinner <vstinner at python.org>
date: 2022-02-07T01:25:44+01:00
summary:

bpo-46670: Remove unused get_frame_state() function (GH-31177)

The PyFrame_MAXFREELIST macro is no longer defined.

files:
M Objects/frameobject.c

diff --git a/Objects/frameobject.c b/Objects/frameobject.c
index 78f3894111bc3..dd29541f04b0e 100644
--- a/Objects/frameobject.c
+++ b/Objects/frameobject.c
@@ -20,15 +20,6 @@ static PyMemberDef frame_memberlist[] = {
     {NULL}      /* Sentinel */
 };
 
-#if PyFrame_MAXFREELIST > 0
-static struct _Py_frame_state *
-get_frame_state(void)
-{
-    PyInterpreterState *interp = _PyInterpreterState_GET();
-    return &interp->frame;
-}
-#endif
-
 
 static PyObject *
 frame_getlocals(PyFrameObject *f, void *closure)



More information about the Python-checkins mailing list