]> granicus.if.org Git - python/commitdiff
Remove unused static function
authorNeal Norwitz <nnorwitz@gmail.com>
Fri, 31 May 2002 21:47:02 +0000 (21:47 +0000)
committerNeal Norwitz <nnorwitz@gmail.com>
Fri, 31 May 2002 21:47:02 +0000 (21:47 +0000)
Modules/selectmodule.c

index 03c222ad4774faaab836f608040249aa327fa226..bdd3a52178d9e1da43c08f62561f57061ba937d3 100644 (file)
@@ -635,25 +635,6 @@ static char module_doc[] =
 *** IMPORTANT NOTICE ***\n\
 On Windows, only sockets are supported; on Unix, all file descriptors.";
 
-/*
- * Convenience routine to export an integer value.
- * For simplicity, errors (which are unlikely anyway) are ignored.
- */
-
-static void
-insint(PyObject *d, char *name, int value)
-{
-       PyObject *v = PyInt_FromLong((long) value);
-       if (v == NULL) {
-               /* Don't bother reporting this error */
-               PyErr_Clear();
-       }
-       else {
-               PyDict_SetItemString(d, name, v);
-               Py_DECREF(v);
-       }
-}
-
 DL_EXPORT(void)
 initselect(void)
 {