From fdbeb5a4ce440de5c3d0638228cd9de0361bc4ac Mon Sep 17 00:00:00 2001 From: Neal Norwitz Date: Fri, 19 Apr 2002 14:58:40 +0000 Subject: #546155, remove posix_int() it is not used --- Modules/posixmodule.c | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/Modules/posixmodule.c b/Modules/posixmodule.c index 94630f6..b9aa28a 100644 --- a/Modules/posixmodule.c +++ b/Modules/posixmodule.c @@ -460,22 +460,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)) { int fd; -- cgit v0.12