Mercurial > cpython-lru_cache-weakref
diff Modules/threadmodule.c @ 59086:df5719c298db legacy-trunk
#4852: Remove dead code in every thread implementation, unused for many years.
| author | Amaury Forgeot d'Arc <amauryfa@gmail.com> |
|---|---|
| date | Tue, 23 Feb 2010 23:19:39 +0000 |
| parents | d56b103490a5 |
| children | 7eec6238e15a |
line wrap: on
line diff
--- a/Modules/threadmodule.c Tue Feb 23 23:16:07 2010 +0000 +++ b/Modules/threadmodule.c Tue Feb 23 23:19:39 2010 +0000 @@ -558,18 +558,6 @@ A subthread can use this function to interrupt the main thread." ); -#ifndef NO_EXIT_PROG -static PyObject * -thread_PyThread_exit_prog(PyObject *self, PyObject *args) -{ - int sts; - if (!PyArg_ParseTuple(args, "i:exit_prog", &sts)) - return NULL; - Py_Exit(sts); /* Calls PyThread_exit_prog(sts) or _PyThread_exit_prog(sts) */ - for (;;) { } /* Should not be reached */ -} -#endif - static lockobject *newlockobject(void); static PyObject * @@ -703,10 +691,6 @@ {"stack_size", (PyCFunction)thread_stack_size, METH_VARARGS, stack_size_doc}, -#ifndef NO_EXIT_PROG - {"exit_prog", (PyCFunction)thread_PyThread_exit_prog, - METH_VARARGS}, -#endif {NULL, NULL} /* sentinel */ };
