diff options
author | Panu Matilainen <pmatilai@redhat.com> | 2009-10-28 16:17:21 +0200 |
---|---|---|
committer | Panu Matilainen <pmatilai@redhat.com> | 2009-10-28 16:17:21 +0200 |
commit | 615c45ec34dc5c5c00aa50854524cd428e70de50 (patch) | |
tree | 9de95e52060fd398f1e2159c525a580f06cea095 /python/rpmds-py.c | |
parent | 3df9dc71118b498694437f083bb174d774cc6337 (diff) | |
download | rpm-615c45ec34dc5c5c00aa50854524cd428e70de50.tar.gz rpm-615c45ec34dc5c5c00aa50854524cd428e70de50.tar.bz2 rpm-615c45ec34dc5c5c00aa50854524cd428e70de50.zip |
Rip out stillborn code
Diffstat (limited to 'python/rpmds-py.c')
-rw-r--r-- | python/rpmds-py.c | 32 |
1 files changed, 0 insertions, 32 deletions
diff --git a/python/rpmds-py.c b/python/rpmds-py.c index 20dcedaa5..92c7418cf 100644 --- a/python/rpmds-py.c +++ b/python/rpmds-py.c @@ -303,32 +303,6 @@ static PyObject * rpmds_Rpmlib(rpmdsObject * s) return rpmds_Wrap(&rpmds_Type, ds); } - -#ifdef NOTYET -static PyObject * -rpmds_Compare(rpmdsObject * s, PyObject * args, PyObject * kwds) -{ - PyObject * to = NULL; - rpmdsObject * o; - char * kwlist[] = {"other", NULL}; - - if (!PyArg_ParseTupleAndKeywords(args, kwds, "O:Compare", kwlist, &to)) - return NULL; - - /* XXX ds type check needed. */ - o = (rpmdsObject *)to; - return Py_BuildValue("i", rpmdsCompare(s->ds, o->ds)); -} - -static PyObject * -rpmds_Problem(rpmdsObject * s) -{ - if (!PyArg_ParseTuple(args, ":Problem")) - return NULL; - Py_RETURN_NONE; -} -#endif - static struct PyMethodDef rpmds_methods[] = { {"Count", (PyCFunction)rpmds_Count, METH_NOARGS, "ds.Count -> Count - Return no. of elements.\n" }, @@ -366,12 +340,6 @@ static struct PyMethodDef rpmds_methods[] = { The current index in ds is positioned at overlapping member upon success.\n" }, {"Rpmlib", (PyCFunction)rpmds_Rpmlib, METH_NOARGS|METH_STATIC, "ds.Rpmlib -> nds - Return internal rpmlib dependency set.\n"}, -#ifdef NOTYET - {"Compare", (PyCFunction)rpmds_Compare, METH_VARARGS|METH_KEYWORDS, - NULL}, - {"Problem", (PyCFunction)rpmds_Problem, METH_NOARGS, - NULL}, -#endif {NULL, NULL} /* sentinel */ }; |