[Python-checkins] CVS: python/dist/src/Modules zlibmodule.c,2.54,2.55
Jeremy Hylton
jhylton@users.sourceforge.net
Wed, 17 Oct 2001 06:32:04 -0700
Update of /cvsroot/python/python/dist/src/Modules
In directory usw-pr-cvs1:/tmp/cvs-serv16891/Modules
Modified Files:
zlibmodule.c
Log Message:
Remove unused convenience routine.
Index: zlibmodule.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Modules/zlibmodule.c,v
retrieving revision 2.54
retrieving revision 2.55
diff -C2 -d -r2.54 -r2.55
*** zlibmodule.c 2001/10/17 04:16:15 2.54
--- zlibmodule.c 2001/10/17 13:32:02 2.55
***************
*** 830,852 ****
};
- /* The following insint() routine was blatantly ripped off from
- socketmodule.c */
-
- /* Convenience routine to export an integer value.
- For simplicity, errors (which are unlikely anyway) are ignored. */
- static void
- insint(PyObject *d, char *name, int value)
- {
- PyObject *v = PyInt_FromLong((long) value);
- if (v == NULL) {
- /* Don't bother reporting this error */
- PyErr_Clear();
- }
- else {
- PyDict_SetItemString(d, name, v);
- Py_DECREF(v);
- }
- }
-
static char zlib_module_documentation[]=
"The functions in this module allow compression and decompression using the\n"
--- 830,833 ----