summaryrefslogtreecommitdiff
path: root/lib/rpmps.c
diff options
context:
space:
mode:
authorPanu Matilainen <pmatilai@redhat.com>2010-03-25 16:06:07 +0200
committerPanu Matilainen <pmatilai@redhat.com>2010-03-25 16:06:07 +0200
commit8360baf5d634deef842173abee2edb35ee9d5818 (patch)
tree45802ee5aa9454db2da213f305419688d4a63436 /lib/rpmps.c
parent7dce058cb8da856a268e391e9beeaf3e097086a3 (diff)
downloadrpm-8360baf5d634deef842173abee2edb35ee9d5818.tar.gz
rpm-8360baf5d634deef842173abee2edb35ee9d5818.tar.bz2
rpm-8360baf5d634deef842173abee2edb35ee9d5818.zip
Lose unused ignoreProblem from rpmProblem struct
- this is an artifact from rpm 4.4.x-times, and even back then nothing used it, the only api to set it was in python bindings and.. eww - also killing this makes rpmpsTrim() do something semi-useful again
Diffstat (limited to 'lib/rpmps.c')
-rw-r--r--lib/rpmps.c10
1 files changed, 0 insertions, 10 deletions
diff --git a/lib/rpmps.c b/lib/rpmps.c
index 1d8e4123e..5c0601940 100644
--- a/lib/rpmps.c
+++ b/lib/rpmps.c
@@ -19,7 +19,6 @@ struct rpmProblem_s {
char * altNEVR;
fnpyKey key;
rpmProblemType type;
- int ignoreProblem;
char * str1;
uint64_t num1;
int nrefs;
@@ -181,10 +180,6 @@ int rpmpsTrim(rpmps ps, rpmps filter)
f = filter->probs;
while ((f - filter->probs) < filter->numProblems) {
- if (!(*f)->ignoreProblem) {
- f++;
- continue;
- }
while ((t - ps->probs) < ps->numProblems) {
if ((*f)->type == (*t)->type && (*t)->key == (*f)->key &&
XSTRCMP((*f)->str1, (*t)->str1))
@@ -197,7 +192,6 @@ int rpmpsTrim(rpmps ps, rpmps filter)
if ((t - ps->probs) == ps->numProblems)
break;
- (*t)->ignoreProblem = (*f)->ignoreProblem;
t++, f++;
}
@@ -220,7 +214,6 @@ rpmProblem rpmProblemCreate(rpmProblemType type,
p->type = type;
p->key = key;
p->num1 = number;
- p->ignoreProblem = 0;
p->pkgNEVR = (pkgNEVR ? xstrdup(pkgNEVR) : NULL);
p->altNEVR = (altNEVR ? xstrdup(altNEVR) : NULL);
@@ -414,9 +407,6 @@ void rpmpsPrint(FILE *fp, rpmps ps)
int j;
rpmProblem p = rpmpsGetProblem(psi);
- if (p->ignoreProblem)
- continue;
-
rpmpsi psif = rpmpsInitIterator(ps);
/* Filter already displayed problems. */
while ((j = rpmpsNextIterator(psif)) < i) {