[PATCH 2/4] Remove isys.isPseudoTTY
David Shea
dshea at redhat.com
Mon Feb 24 14:27:03 UTC 2014
This function isn't used anywhere anymore
---
pyanaconda/isys/__init__.py | 3 ---
pyanaconda/isys/isys.c | 13 -------------
2 files changed, 16 deletions(-)
diff --git a/pyanaconda/isys/__init__.py b/pyanaconda/isys/__init__.py
index a1c7998..b1f16c6 100644
--- a/pyanaconda/isys/__init__.py
+++ b/pyanaconda/isys/__init__.py
@@ -55,9 +55,6 @@ else:
MIN_GUI_RAM = MIN_RAM + GUI_INSTALL_EXTRA_RAM
EARLY_SWAP_RAM = 896 * 1024
-def isPseudoTTY (fd):
- return _isys.isPseudoTTY (fd)
-
## Flush filesystem buffers.
def sync ():
return _isys.sync ()
diff --git a/pyanaconda/isys/isys.c b/pyanaconda/isys/isys.c
index 2a00471..f20a064 100644
--- a/pyanaconda/isys/isys.c
+++ b/pyanaconda/isys/isys.c
@@ -71,14 +71,12 @@
#define CDROMEJECT 0x5309
#endif
-static PyObject * doisPseudoTTY(PyObject * s, PyObject * args);
static PyObject * doSync(PyObject * s, PyObject * args);
static PyObject * doSegvHandler(PyObject *s, PyObject *args);
static PyObject * doGetAnacondaVersion(PyObject * s, PyObject * args);
static PyObject * doSetSystemTime(PyObject *s, PyObject *args);
static PyMethodDef isysModuleMethods[] = {
- { "isPseudoTTY", (PyCFunction) doisPseudoTTY, METH_VARARGS, NULL},
{ "sync", (PyCFunction) doSync, METH_VARARGS, NULL},
{ "handleSegv", (PyCFunction) doSegvHandler, METH_VARARGS, NULL },
{ "getAnacondaVersion", (PyCFunction) doGetAnacondaVersion, METH_VARARGS, NULL },
@@ -94,17 +92,6 @@ void init_isys(void) {
Py_InitModule("_isys", isysModuleMethods);
}
-static PyObject * doisPseudoTTY(PyObject * s, PyObject * args) {
- int fd;
- struct stat sb;
-
- if (!PyArg_ParseTuple(args, "i", &fd)) return NULL;
- fstat(fd, &sb);
-
- /* XXX close enough for now */
- return Py_BuildValue("i", ((major(sb.st_rdev) >= 136) && (major(sb.st_rdev) <= 143)));
-}
-
static PyObject * doSync(PyObject * s, PyObject * args) {
int fd;
--
1.9.0
More information about the anaconda-patches
mailing list