remove some unused code
authorDan Winship <danw@gnome.org>
Fri, 15 Feb 2008 14:31:20 +0000 (09:31 -0500)
committerDan Winship <danw@gnome.org>
Fri, 15 Feb 2008 14:31:20 +0000 (09:31 -0500)
razor.c

diff --git a/razor.c b/razor.c
index 347cf78..1f9e8d3 100644 (file)
--- a/razor.c
+++ b/razor.c
@@ -1537,11 +1537,7 @@ razor_set_update(struct razor_set *set, struct razor_set *upstream,
                 int count, const char **packages)
 {
        struct razor_set *new;
-       struct razor_package *upackages;
        struct array list, unsatisfied;
-       char *pool;
-       uint32_t *u, *end;
-       int total = 0;
 
        array_init(&list);
        if (count > 0)
@@ -1549,11 +1545,6 @@ razor_set_update(struct razor_set *set, struct razor_set *upstream,
        else
                find_all_packages(set, upstream, &list);
 
-       end = list.data + list.size;
-       upackages = upstream->packages.data;
-       pool = upstream->string_pool.data;
-       total += list.size / sizeof *u;
-
        while (list.size > 0) {
                new = razor_set_add(set, upstream, &list);
                array_release(&list);
@@ -1565,11 +1556,6 @@ razor_set_update(struct razor_set *set, struct razor_set *upstream,
                array_init(&list);
                razor_set_satisfy(new, &unsatisfied, upstream, &list);
                array_release(&unsatisfied);
-
-               end = list.data + list.size;
-               upackages = upstream->packages.data;
-               pool = upstream->string_pool.data;
-               total += list.size / sizeof *u;
        }
 
        array_release(&list);