Lose unused ignoreProblem from rpmProblem struct
authorPanu Matilainen <pmatilai@redhat.com>
Thu, 25 Mar 2010 14:06:07 +0000 (16:06 +0200)
committerPanu Matilainen <pmatilai@redhat.com>
Thu, 25 Mar 2010 14:06:07 +0000 (16:06 +0200)
- 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

index 1d8e412..5c06019 100644 (file)
@@ -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) {