[Python-checkins] python/dist/src/Modules socketmodule.c,1.217,1.218
gvanrossum@users.sourceforge.net
gvanrossum@users.sourceforge.net
Thu, 06 Jun 2002 13:41:13 -0700
Update of /cvsroot/python/python/dist/src/Modules
In directory usw-pr-cvs1:/tmp/cvs-serv11671
Modified Files:
socketmodule.c
Log Message:
The insint() function is not used. Nuke it.
Index: socketmodule.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Modules/socketmodule.c,v
retrieving revision 1.217
retrieving revision 1.218
diff -C2 -d -r1.217 -r1.218
*** socketmodule.c 6 Jun 2002 20:08:25 -0000 1.217
--- socketmodule.c 6 Jun 2002 20:41:10 -0000 1.218
***************
*** 2561,2579 ****
- /* 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
--- 2561,2564 ----