diff options
author | Guido van Rossum <guido@python.org> | 2002-06-06 20:41:10 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 2002-06-06 20:41:10 (GMT) |
commit | c9a55776c88619d1b79d47d4734af0f2c423c045 (patch) | |
tree | fbe83a35a867aef7baf8dd1ffa32a56dcf65c6e2 /Modules/socketmodule.c | |
parent | e1c478ff8a8cbae86dbc5467ccfe8c01bac52a54 (diff) | |
download | cpython-c9a55776c88619d1b79d47d4734af0f2c423c045.zip cpython-c9a55776c88619d1b79d47d4734af0f2c423c045.tar.gz cpython-c9a55776c88619d1b79d47d4734af0f2c423c045.tar.bz2 |
The insint() function is not used. Nuke it.
Diffstat (limited to 'Modules/socketmodule.c')
-rw-r--r-- | Modules/socketmodule.c | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/Modules/socketmodule.c b/Modules/socketmodule.c index 1874541..89e8da6 100644 --- a/Modules/socketmodule.c +++ b/Modules/socketmodule.c @@ -2560,21 +2560,6 @@ static PyMethodDef PySocket_methods[] = { }; -/* Convenience routine to export an integer value. - * - * Errors are silently ignored, for better or for worse... - */ -static void -insint(PyObject *d, char *name, int value) -{ - PyObject *v = PyInt_FromLong((long) value); - if (!v || PyDict_SetItemString(d, name, v)) - PyErr_Clear(); - - Py_XDECREF(v); -} - - #ifdef MS_WINDOWS /* Additional initialization and cleanup for NT/Windows */ |