Remove unused package color calculations from 2003
authorPanu Matilainen <pmatilai@redhat.com>
Wed, 29 Oct 2008 13:06:37 +0000 (15:06 +0200)
committerPanu Matilainen <pmatilai@redhat.com>
Thu, 30 Oct 2008 11:47:40 +0000 (13:47 +0200)
lib/transaction.c

index 0bee781..7ff300b 100644 (file)
@@ -73,7 +73,6 @@ static int handleInstInstalledFiles(const rpmts ts,
 {
     rpm_color_t tscolor = rpmtsColor(ts);
     rpm_color_t prefcolor = rpmtsPrefColor(ts);
-    rpm_color_t otecolor, tecolor;
     rpm_color_t oFColor, FColor;
     char * altNEVR = NULL;
     rpmfi otherFi = NULL;
@@ -94,18 +93,6 @@ static int handleInstInstalledFiles(const rpmts ts,
        mi = rpmdbFreeIterator(mi);
     }
 
-    /* Compute package color. */
-    tecolor = rpmteColor(p);
-    tecolor &= tscolor;
-
-    /* Compute other pkg color. */
-    otecolor = 0;
-    otherFi = rpmfiInit(otherFi, 0);
-    if (otherFi != NULL)
-    while (rpmfiNext(otherFi) >= 0)
-       otecolor |= rpmfiFColor(otherFi);
-    otecolor &= tscolor;
-
     if (otherFi == NULL)
        return 1;