summaryrefslogtreecommitdiffstats
path: root/Modules/threadmodule.c
diff options
context:
space:
mode:
authorAmaury Forgeot d'Arc <amauryfa@gmail.com>2010-02-23 23:19:39 (GMT)
committerAmaury Forgeot d'Arc <amauryfa@gmail.com>2010-02-23 23:19:39 (GMT)
commitadfc80bd8111de9e5045e9d693dfc8b6821bed75 (patch)
tree48499b4fe14c46259c09e2a0ec964b9e88b18675 /Modules/threadmodule.c
parentf20f9c299ee093fd67c5b3caf0b5013af71c3136 (diff)
downloadcpython-adfc80bd8111de9e5045e9d693dfc8b6821bed75.zip
cpython-adfc80bd8111de9e5045e9d693dfc8b6821bed75.tar.gz
cpython-adfc80bd8111de9e5045e9d693dfc8b6821bed75.tar.bz2
#4852: Remove dead code in every thread implementation, unused for many years.
Diffstat (limited to 'Modules/threadmodule.c')
-rw-r--r--Modules/threadmodule.c16
1 files changed, 0 insertions, 16 deletions
diff --git a/Modules/threadmodule.c b/Modules/threadmodule.c
index c682af2..1981ff6 100644
--- a/Modules/threadmodule.c
+++ b/Modules/threadmodule.c
@@ -558,18 +558,6 @@ Raise a KeyboardInterrupt in the main thread.\n\
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 @@ static PyMethodDef thread_methods[] = {
{"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 */
};