From: Neal Norwitz Date: Fri, 19 Apr 2002 14:58:40 +0000 (+0000) Subject: #546155, remove posix_int() it is not used X-Git-Tag: v2.3c1~5880 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=fdbeb5a4ce440de5c3d0638228cd9de0361bc4ac;p=python #546155, remove posix_int() it is not used --- diff --git a/Modules/posixmodule.c b/Modules/posixmodule.c index 94630f6298..b9aa28aa50 100644 --- a/Modules/posixmodule.c +++ b/Modules/posixmodule.c @@ -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)) {