summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorNeal Norwitz <nnorwitz@gmail.com>2002-04-19 14:58:40 (GMT)
committerNeal Norwitz <nnorwitz@gmail.com>2002-04-19 14:58:40 (GMT)
commitfdbeb5a4ce440de5c3d0638228cd9de0361bc4ac (patch)
tree0ff2411da54bef5ae48094d5663aa59b920beed9 /Modules
parentc72737e7b6ec3beeecafbef75fbc31e22e0d710b (diff)
downloadcpython-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.c16
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;