Skip to content

Commit 89d52d2

Browse files
author
nnorwitz
committed
Remove unused static function
git-svn-id: http://svn.python.org/projects/python/trunk@26971 6015fed2-1504-0410-9fe1-9d1591cc4771
1 parent d6b175d commit 89d52d2

1 file changed

Lines changed: 0 additions & 19 deletions

File tree

Modules/selectmodule.c

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -635,25 +635,6 @@ static char module_doc[] =
635635
*** IMPORTANT NOTICE ***\n\
636636
On Windows, only sockets are supported; on Unix, all file descriptors.";
637637

638-
/*
639-
* Convenience routine to export an integer value.
640-
* For simplicity, errors (which are unlikely anyway) are ignored.
641-
*/
642-
643-
static void
644-
insint(PyObject *d, char *name, int value)
645-
{
646-
PyObject *v = PyInt_FromLong((long) value);
647-
if (v == NULL) {
648-
/* Don't bother reporting this error */
649-
PyErr_Clear();
650-
}
651-
else {
652-
PyDict_SetItemString(d, name, v);
653-
Py_DECREF(v);
654-
}
655-
}
656-
657638
DL_EXPORT(void)
658639
initselect(void)
659640
{

0 commit comments

Comments
 (0)