From c9a55776c88619d1b79d47d4734af0f2c423c045 Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Thu, 6 Jun 2002 20:41:10 +0000 Subject: The insint() function is not used. Nuke it. --- Modules/socketmodule.c | 15 --------------- 1 file changed, 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 */ -- cgit v0.12