summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPanu Matilainen <pmatilai@redhat.com>2009-09-30 16:10:24 +0300
committerPanu Matilainen <pmatilai@redhat.com>2009-09-30 16:10:24 +0300
commit8cb920eb32f36297e2154b7ebcc25851d9a7b39d (patch)
tree92baed04aa59002048a4146a4a4236f980df309f
parentb8d3b273cbcc7a4130d6786ff157a87a4f383c30 (diff)
downloadrpm-8cb920eb32f36297e2154b7ebcc25851d9a7b39d.tar.gz
rpm-8cb920eb32f36297e2154b7ebcc25851d9a7b39d.tar.bz2
rpm-8cb920eb32f36297e2154b7ebcc25851d9a7b39d.zip
Eliminate unused python ts iterator filter stuff
- iterators dont take arguments so there's no convenient way to filter while iterating, let python users filter themselves (like they've always been doing)
-rw-r--r--python/rpmts-py.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/python/rpmts-py.c b/python/rpmts-py.c
index 5c38485d3..d3bf90e26 100644
--- a/python/rpmts-py.c
+++ b/python/rpmts-py.c
@@ -141,7 +141,6 @@ struct rpmtsObject_s {
PyObject * keyList; /* keeps reference counts correct */
FD_t scriptFd;
rpmtsi tsi;
- rpmElementType tsiFilter;
rpmprobFilterFlags ignoreSet;
};
@@ -791,7 +790,6 @@ rpmts_Run(rpmtsObject * s, PyObject * args, PyObject * kwds)
return list;
}
-/* TODO Add TR_ADDED filter to iterator. */
static PyObject *
rpmts_iternext(rpmtsObject * s)
{
@@ -803,15 +801,13 @@ rpmts_iternext(rpmtsObject * s)
s->tsi = rpmtsiInit(s->ts);
if (s->tsi == NULL)
return NULL;
- s->tsiFilter = 0;
}
- te = rpmtsiNext(s->tsi, s->tsiFilter);
+ te = rpmtsiNext(s->tsi, 0);
if (te != NULL) {
result = rpmte_Wrap(&rpmte_Type, te);
} else {
s->tsi = rpmtsiFree(s->tsi);
- s->tsiFilter = 0;
}
return result;
@@ -1075,6 +1071,5 @@ PyObject * rpmts_Wrap(PyTypeObject *subtype, rpmts ts)
s->keyList = PyList_New(0);
s->scriptFd = NULL;
s->tsi = NULL;
- s->tsiFilter = 0;
return (PyObject *) s;
}