summaryrefslogtreecommitdiffstats
path: root/Python/sysmodule.c
diff options
context:
space:
mode:
authorPablo Galindo Salgado <Pablogsal@gmail.com>2021-07-15 13:43:59 (GMT)
committerGitHub <noreply@github.com>2021-07-15 13:43:59 (GMT)
commit4cb7263f0c7199280c01d911a1e7021568b548fd (patch)
tree18163178a6b562625431d44fb2ffccb8e0a9ee3a /Python/sysmodule.c
parentf333ab0f2edec26a769ed558263ac662e5475451 (diff)
downloadcpython-4cb7263f0c7199280c01d911a1e7021568b548fd.zip
cpython-4cb7263f0c7199280c01d911a1e7021568b548fd.tar.gz
cpython-4cb7263f0c7199280c01d911a1e7021568b548fd.tar.bz2
Remove sys._deactivate_opcache() now that is not needed (GH-27154)
Diffstat (limited to 'Python/sysmodule.c')
-rw-r--r--Python/sysmodule.c17
1 files changed, 0 insertions, 17 deletions
diff --git a/Python/sysmodule.c b/Python/sysmodule.c
index b71a096..f809e2f 100644
--- a/Python/sysmodule.c
+++ b/Python/sysmodule.c
@@ -1971,22 +1971,6 @@ sys_getandroidapilevel_impl(PyObject *module)
}
#endif /* ANDROID_API_LEVEL */
-
-/*[clinic input]
-sys._deactivate_opcache
-
-Deactivate the opcode cache permanently
-[clinic start generated code]*/
-
-static PyObject *
-sys__deactivate_opcache_impl(PyObject *module)
-/*[clinic end generated code: output=00e20982bd012122 input=501eac146735ccf9]*/
-{
- _PyEval_DeactivateOpCache();
- Py_RETURN_NONE;
-}
-
-
static PyMethodDef sys_methods[] = {
/* Might as well keep this in alphabetic order */
SYS_ADDAUDITHOOK_METHODDEF
@@ -2040,7 +2024,6 @@ static PyMethodDef sys_methods[] = {
SYS_GET_ASYNCGEN_HOOKS_METHODDEF
SYS_GETANDROIDAPILEVEL_METHODDEF
SYS_UNRAISABLEHOOK_METHODDEF
- SYS__DEACTIVATE_OPCACHE_METHODDEF
{NULL, NULL} /* sentinel */
};