]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Remove unused helper-function 'posix_strint'.
authorThomas Wouters <thomas@python.org>
Sat, 22 Jul 2000 16:39:39 +0000 (16:39 +0000)
committerThomas Wouters <thomas@python.org>
Sat, 22 Jul 2000 16:39:39 +0000 (16:39 +0000)
Modules/posixmodule.c

index f39a241bc2c135fd515f1b5c8a4dcf85c3d0bd7a..c22be542d8ca4dc5ed0f2415ae1e8b1fc4988cf3 100644 (file)
@@ -495,24 +495,6 @@ posix_2str(PyObject *args, char *format,
        return Py_None;
 }
 
-static PyObject *
-posix_strint(PyObject *args, char *format, int (*func)(const char *, int))
-{
-       char *path;
-       int i;
-       int res;
-       if (!PyArg_ParseTuple(args, format, &path, &i))
-               return NULL;
-       Py_BEGIN_ALLOW_THREADS
-       res = (*func)(path, i);
-       Py_END_ALLOW_THREADS
-       if (res < 0)
-               return posix_error_with_filename(path);
-       Py_INCREF(Py_None);
-       return Py_None;
-}
-
-
 /* pack a system stat C structure into the Python stat tuple 
    (used by posix_stat() and posix_fstat()) */
 static PyObject*