]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
satisfy the -Wall: remove two unused local variables and unused ins function
authorJeremy Hylton <jeremy@alum.mit.edu>
Tue, 11 Jul 2000 20:30:05 +0000 (20:30 +0000)
committerJeremy Hylton <jeremy@alum.mit.edu>
Tue, 11 Jul 2000 20:30:05 +0000 (20:30 +0000)
Modules/linuxaudiodev.c

index e52e24297572450397f60352869999d9eabe8465..6a1c5ffe15ef2fa712554547395a7ab17c96fe1b 100644 (file)
@@ -64,8 +64,6 @@ newladobject(PyObject *arg)
     int fd, afmts, imode;
     char *mode;
     char *basedev;
-    char *ctldev;
-    char *opendev;
 
     /* Check arg for r/w/rw */
     if (!PyArg_ParseTuple(arg, "s:open", &mode)) return NULL;
@@ -385,17 +383,6 @@ static PyMethodDef linuxaudiodev_methods[] = {
     { 0, 0 },
 };
 
-static int
-ins(PyObject *d, char *symbol, long value)
-{
-    PyObject* v = PyInt_FromLong(value);
-    if (!v || PyDict_SetItemString(d, symbol, v) < 0)
-        return -1;                   /* triggers fatal error */
-
-    Py_DECREF(v);
-    return 0;
-}
-
 void
 initlinuxaudiodev()
 {