]> granicus.if.org Git - python/commitdiff
Remove unused convenience routine.
authorJeremy Hylton <jeremy@alum.mit.edu>
Wed, 17 Oct 2001 13:32:02 +0000 (13:32 +0000)
committerJeremy Hylton <jeremy@alum.mit.edu>
Wed, 17 Oct 2001 13:32:02 +0000 (13:32 +0000)
Modules/zlibmodule.c

index c1515b67442cba26a368669f158f2cc7fc9ea298..9555740b2ac3d0580de5821a8d55e7e4f816873b 100644 (file)
@@ -829,25 +829,6 @@ statichere PyTypeObject Decomptype = {
     0,                              /*tp_as_mapping*/
 };
 
-/* 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"
 "zlib library, which is based on GNU zip.\n"