From 4cb7263f0c7199280c01d911a1e7021568b548fd Mon Sep 17 00:00:00 2001 From: Pablo Galindo Salgado Date: Thu, 15 Jul 2021 14:43:59 +0100 Subject: Remove sys._deactivate_opcache() now that is not needed (GH-27154) --- Python/sysmodule.c | 17 ----------------- 1 file changed, 17 deletions(-) (limited to 'Python/sysmodule.c') diff --git a/Python/sysmodule.c b/Python/sysmodule.c index b71a096eaa..f809e2fda5 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 */ }; -- cgit v1.2.1