From 16f96a4cf9ab1e91e6e8e18232378bc4b42bb796 Mon Sep 17 00:00:00 2001 From: Victor Stinner Date: Mon, 7 Feb 2022 01:25:44 +0100 Subject: [PATCH] bpo-46670: Remove unused get_frame_state() function (GH-31177) The PyFrame_MAXFREELIST macro is no longer defined. --- Objects/frameobject.c | 9 --------- 1 file changed, 9 deletions(-) diff --git a/Objects/frameobject.c b/Objects/frameobject.c index 78f3894111b..dd29541f04b 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)