summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorJeremy Hylton <jeremy@alum.mit.edu>2001-10-17 13:32:02 (GMT)
committerJeremy Hylton <jeremy@alum.mit.edu>2001-10-17 13:32:02 (GMT)
commit771f9146d5c29f8c059ebaad42ce49472ed48e0c (patch)
tree761202b3b87d86c3659aea53447f031cf674da30 /Modules
parent14368158c2f7b646a170c0e31cdf115c0947a697 (diff)
downloadcpython-771f9146d5c29f8c059ebaad42ce49472ed48e0c.zip
cpython-771f9146d5c29f8c059ebaad42ce49472ed48e0c.tar.gz
cpython-771f9146d5c29f8c059ebaad42ce49472ed48e0c.tar.bz2
Remove unused convenience routine.
Diffstat (limited to 'Modules')
-rw-r--r--Modules/zlibmodule.c19
1 files changed, 0 insertions, 19 deletions
diff --git a/Modules/zlibmodule.c b/Modules/zlibmodule.c
index c1515b6..9555740 100644
--- a/Modules/zlibmodule.c
+++ b/Modules/zlibmodule.c
@@ -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"