summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorAmaury Forgeot d'Arc <amauryfa@gmail.com>2010-02-24 00:10:48 (GMT)
committerAmaury Forgeot d'Arc <amauryfa@gmail.com>2010-02-24 00:10:48 (GMT)
commit72aee3dcabf98a0b8a7a60cccab4fbd1ef63fbd2 (patch)
tree4d0065384cc092413d520a5d0b6a7774be930a45 /Modules
parent640cacbffe62ac3ee806e61fbd00ec242fdfa2a8 (diff)
downloadcpython-72aee3dcabf98a0b8a7a60cccab4fbd1ef63fbd2.zip
cpython-72aee3dcabf98a0b8a7a60cccab4fbd1ef63fbd2.tar.gz
cpython-72aee3dcabf98a0b8a7a60cccab4fbd1ef63fbd2.tar.bz2
Merged revisions 78393 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk ........ r78393 | amaury.forgeotdarc | 2010-02-24 00:19:39 +0100 (mer., 24 févr. 2010) | 2 lines #4852: Remove dead code in every thread implementation, unused for many years. ........
Diffstat (limited to 'Modules')
-rw-r--r--Modules/_threadmodule.c16
1 files changed, 0 insertions, 16 deletions
diff --git a/Modules/_threadmodule.c b/Modules/_threadmodule.c
index 5a3f92a..aff755e 100644
--- a/Modules/_threadmodule.c
+++ b/Modules/_threadmodule.c
@@ -825,18 +825,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 *
@@ -970,10 +958,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 */
};