diff options
author | Neal Norwitz <nnorwitz@gmail.com> | 2002-04-19 14:58:40 (GMT) |
---|---|---|
committer | Neal Norwitz <nnorwitz@gmail.com> | 2002-04-19 14:58:40 (GMT) |
commit | fdbeb5a4ce440de5c3d0638228cd9de0361bc4ac (patch) | |
tree | 0ff2411da54bef5ae48094d5663aa59b920beed9 /Modules | |
parent | c72737e7b6ec3beeecafbef75fbc31e22e0d710b (diff) | |
download | cpython-fdbeb5a4ce440de5c3d0638228cd9de0361bc4ac.zip cpython-fdbeb5a4ce440de5c3d0638228cd9de0361bc4ac.tar.gz cpython-fdbeb5a4ce440de5c3d0638228cd9de0361bc4ac.tar.bz2 |
#546155, remove posix_int() it is not used
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/posixmodule.c | 16 |
1 files changed, 0 insertions, 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; |