]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
The insint() function is not used. Nuke it.
authorGuido van Rossum <guido@python.org>
Thu, 6 Jun 2002 20:41:10 +0000 (20:41 +0000)
committerGuido van Rossum <guido@python.org>
Thu, 6 Jun 2002 20:41:10 +0000 (20:41 +0000)
Modules/socketmodule.c

index 1874541bb1cc6b92bef457a04f772bfd6f21c687..89e8da638114143d60620e0b6dca6f4906331eb5 100644 (file)
@@ -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 */