diff Modules/_threadmodule.c @ 59089:798e0d0c7246

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. ........
author Amaury Forgeot d'Arc <amauryfa@gmail.com>
date Wed, 24 Feb 2010 00:10:48 +0000
parents 6d91aaadddd0
children 086846381e8f
line wrap: on
line diff
--- a/Modules/_threadmodule.c	Tue Feb 23 23:21:33 2010 +0000
+++ b/Modules/_threadmodule.c	Wed Feb 24 00:10:48 2010 +0000
@@ -825,18 +825,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 *
@@ -970,10 +958,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 */
 };