summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorPanu Matilainen <pmatilai@redhat.com>2009-12-18 15:28:36 +0200
committerPanu Matilainen <pmatilai@redhat.com>2009-12-21 09:22:11 +0200
commit88d56552d12c487bff85262bd0d430270619c9e2 (patch)
treed19ad695a196e74d7b558465cc29292a640937c5 /lib
parent92884ca771905b4de2c2abc1fc5b144fecff8e55 (diff)
downloadrpm-88d56552d12c487bff85262bd0d430270619c9e2.tar.gz
rpm-88d56552d12c487bff85262bd0d430270619c9e2.tar.bz2
rpm-88d56552d12c487bff85262bd0d430270619c9e2.zip
Remove unused ordering related members from rpmts struct
Diffstat (limited to 'lib')
-rw-r--r--lib/order.c3
-rw-r--r--lib/rpmts.c4
-rw-r--r--lib/rpmts_internal.h2
3 files changed, 0 insertions, 9 deletions
diff --git a/lib/order.c b/lib/order.c
index 8f24fb12e..969a8ee28 100644
--- a/lib/order.c
+++ b/lib/order.c
@@ -217,8 +217,6 @@ static inline int addRelation(rpmts ts,
/* Save max. depth in dependency tree */
if (tsi_p->depth <= tsi_q->depth)
tsi_p->depth = tsi_q->depth + 1;
- if (tsi_p->depth > ts->maxDepth)
- ts->maxDepth = tsi_p->depth;
rel = xcalloc(1, sizeof(*rel));
rel->rel_suc = p;
@@ -659,7 +657,6 @@ int rpmtsOrder(rpmts ts)
p_tsi->tree = -1;
}
pi = rpmtsiFree(pi);
- ts->ntrees = treex;
newOrder = xcalloc(ts->orderCount, sizeof(*newOrder));
SCCs = detectSCCs(ts);
diff --git a/lib/rpmts.c b/lib/rpmts.c
index 3808db816..f58665cee 100644
--- a/lib/rpmts.c
+++ b/lib/rpmts.c
@@ -523,8 +523,6 @@ void rpmtsEmpty(rpmts ts)
}
ts->orderCount = 0;
- ts->ntrees = 0;
- ts->maxDepth = 0;
ts->numRemovedPackages = 0;
return;
@@ -935,8 +933,6 @@ rpmts rpmtsCreate(void)
ts->orderAlloced = 0;
ts->orderCount = 0;
ts->order = NULL;
- ts->ntrees = 0;
- ts->maxDepth = 0;
ts->probs = NULL;
diff --git a/lib/rpmts_internal.h b/lib/rpmts_internal.h
index 87bf77ddc..c4f42f801 100644
--- a/lib/rpmts_internal.h
+++ b/lib/rpmts_internal.h
@@ -43,8 +43,6 @@ struct rpmts_s {
rpmte * order; /*!< Packages sorted by dependencies. */
int orderCount; /*!< No. of transaction elements. */
int orderAlloced; /*!< No. of allocated transaction elements. */
- int ntrees; /*!< No. of dependency trees. */
- int maxDepth; /*!< Maximum depth of dependency tree(s). */
int selinuxEnabled; /*!< Is SE linux enabled? */
int chrootDone; /*!< Has chroot(2) been been done? */