diff options
author | Panu Matilainen <pmatilai@redhat.com> | 2009-09-22 20:50:41 +0300 |
---|---|---|
committer | Panu Matilainen <pmatilai@redhat.com> | 2009-09-22 20:50:41 +0300 |
commit | 0cb5de3fc090cae426b812ad3e38e2be8b7e63ac (patch) | |
tree | 8f0fc9febad8d826e83cb615d1bc171a56cd7e73 /python/rpmmi-py.c | |
parent | 0793b2cf23667f515c1675e9dbe37e634c4cd730 (diff) | |
download | librpm-tizen-0cb5de3fc090cae426b812ad3e38e2be8b7e63ac.tar.gz librpm-tizen-0cb5de3fc090cae426b812ad3e38e2be8b7e63ac.tar.bz2 librpm-tizen-0cb5de3fc090cae426b812ad3e38e2be8b7e63ac.zip |
Lose unnecessary next() methods
- python adds next() methods for objects supporting iterators
Diffstat (limited to 'python/rpmmi-py.c')
-rw-r--r-- | python/rpmmi-py.c | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/python/rpmmi-py.c b/python/rpmmi-py.c index ea9941f5f..fad151dc5 100644 --- a/python/rpmmi-py.c +++ b/python/rpmmi-py.c @@ -90,21 +90,6 @@ rpmmi_iternext(rpmmiObject * s) /** */ static PyObject * -rpmmi_Next(rpmmiObject * s) -{ - PyObject * result; - - result = rpmmi_iternext(s); - - if (result == NULL) { - Py_RETURN_NONE; - } - return result; -} - -/** - */ -static PyObject * rpmmi_Instance(rpmmiObject * s) { int rc = 0; @@ -154,9 +139,6 @@ rpmmi_Pattern(rpmmiObject * s, PyObject * args, PyObject * kwds) /** \ingroup py_c */ static struct PyMethodDef rpmmi_methods[] = { - {"next", (PyCFunction) rpmmi_Next, METH_NOARGS, -"mi.next() -> hdr\n\ -- Retrieve next header that matches. Iterate directly in python if possible.\n" }, {"instance", (PyCFunction) rpmmi_Instance, METH_NOARGS, NULL }, {"count", (PyCFunction) rpmmi_Count, METH_NOARGS, |