mirror of https://github.com/python/cpython
bpo-46670: Remove unused get_frame_state() function (GH-31177)
The PyFrame_MAXFREELIST macro is no longer defined.
This commit is contained in:
parent
77b025be4a
commit
16f96a4cf9
|
@ -20,15 +20,6 @@ static PyMemberDef frame_memberlist[] = {
|
||||||
{NULL} /* Sentinel */
|
{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 *
|
static PyObject *
|
||||||
frame_getlocals(PyFrameObject *f, void *closure)
|
frame_getlocals(PyFrameObject *f, void *closure)
|
||||||
|
|
Loading…
Reference in New Issue