From 8360baf5d634deef842173abee2edb35ee9d5818 Mon Sep 17 00:00:00 2001 From: Panu Matilainen Date: Thu, 25 Mar 2010 16:06:07 +0200 Subject: 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 --- lib/rpmps.c | 10 ---------- 1 file changed, 10 deletions(-) (limited to 'lib/rpmps.c') 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) { -- cgit v1.2.3