]> granicus.if.org Git - python/commitdiff
Delete sigcheck.c since it appears unused (#1723)
authorSegev Finer <segev208@gmail.com>
Thu, 25 May 2017 11:00:18 +0000 (14:00 +0300)
committerVictor Stinner <victor.stinner@gmail.com>
Thu, 25 May 2017 11:00:18 +0000 (13:00 +0200)
Include/pyerrors.h
Python/sigcheck.c [deleted file]

index 4540385446fb38d997734481bc801ded7d4a1f6a..fcaba85488e5357d557d25fff6082ef8d87a6550 100644 (file)
@@ -352,7 +352,7 @@ PyAPI_FUNC(PyObject *) _PyErr_TrySetFromCause(
 #endif
 
 
-/* In sigcheck.c or signalmodule.c */
+/* In signalmodule.c */
 PyAPI_FUNC(int) PyErr_CheckSignals(void);
 PyAPI_FUNC(void) PyErr_SetInterrupt(void);
 
diff --git a/Python/sigcheck.c b/Python/sigcheck.c
deleted file mode 100644 (file)
index 022d0e8..0000000
+++ /dev/null
@@ -1,19 +0,0 @@
-
-/* Sigcheck is similar to intrcheck() but sets an exception when an
-   interrupt occurs.  It can't be in the intrcheck.c file since that
-   file (and the whole directory it is in) doesn't know about objects
-   or exceptions.  It can't be in errors.c because it can be
-   overridden (at link time) by a more powerful version implemented in
-   signalmodule.c. */
-
-#include "Python.h"
-
-/* ARGSUSED */
-int
-PyErr_CheckSignals(void)
-{
-       if (!PyOS_InterruptOccurred())
-               return 0;
-       PyErr_SetNone(PyExc_KeyboardInterrupt);
-       return -1;
-}