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

The PyFrame_MAXFREELIST macro is no longer defined.
This commit is contained in:
Victor Stinner 2022-02-07 01:25:44 +01:00 committed by GitHub
parent 77b025be4a
commit 16f96a4cf9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 9 deletions

View File

@ -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)