]> granicus.if.org Git - python/commitdiff
#546155, remove posix_int() it is not used
authorNeal Norwitz <nnorwitz@gmail.com>
Fri, 19 Apr 2002 14:58:40 +0000 (14:58 +0000)
committerNeal Norwitz <nnorwitz@gmail.com>
Fri, 19 Apr 2002 14:58:40 +0000 (14:58 +0000)
Modules/posixmodule.c

index 94630f62988caebd404f852055565f717e18f742..b9aa28aa5031e5d4c1a88ba5d268c37a6afedbd5 100644 (file)
@@ -459,22 +459,6 @@ static PyObject * os2_error(int code)
 
 /* POSIX generic methods */
 
-static PyObject *
-posix_int(PyObject *args, char *format, int (*func)(int))
-{
-       int fd;
-       int res;
-       if (!PyArg_ParseTuple(args, format, &fd))
-               return NULL;
-       Py_BEGIN_ALLOW_THREADS
-       res = (*func)(fd);
-       Py_END_ALLOW_THREADS
-       if (res < 0)
-               return posix_error();
-       Py_INCREF(Py_None);
-       return Py_None;
-}
-
 static PyObject *
 posix_fildes(PyObject *fdobj, int (*func)(int))
 {