From: Guido van Rossum Date: Thu, 6 Jun 2002 20:41:10 +0000 (+0000) Subject: The insint() function is not used. Nuke it. X-Git-Tag: v2.3c1~5439 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=c9a55776c88619d1b79d47d4734af0f2c423c045;p=thirdparty%2FPython%2Fcpython.git The insint() function is not used. Nuke it. --- diff --git a/Modules/socketmodule.c b/Modules/socketmodule.c index 1874541bb1cc..89e8da638114 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 */