summaryrefslogtreecommitdiff
path: root/lib/order.c
diff options
context:
space:
mode:
authorPanu Matilainen <pmatilai@redhat.com>2009-12-21 10:41:03 +0200
committerPanu Matilainen <pmatilai@redhat.com>2009-12-21 10:41:03 +0200
commit60500572d89f47970d45061c533c4d05ccef3a99 (patch)
treeff547c1435758fb7e744e2ceb2b8ba0581fed432 /lib/order.c
parent2268c738f10f40aeb2b7fcf61ae3978785eeca78 (diff)
downloadlibrpm-tizen-60500572d89f47970d45061c533c4d05ccef3a99.tar.gz
librpm-tizen-60500572d89f47970d45061c533c4d05ccef3a99.tar.bz2
librpm-tizen-60500572d89f47970d45061c533c4d05ccef3a99.zip
Eliminate unnecessary npreds member from tsort info
- this is the same as tsi_count
Diffstat (limited to 'lib/order.c')
-rw-r--r--lib/order.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/lib/order.c b/lib/order.c
index 81cef9098..d27753248 100644
--- a/lib/order.c
+++ b/lib/order.c
@@ -39,7 +39,6 @@ struct relation_s {
typedef struct relation_s * relation;
struct tsortInfo_s {
- int npreds; /*!< No. of predecessors. */
int depth; /*!< Depth in dependency tree. */
int tsi_count; // #pkgs this pkg requires
int tsi_qcnt; // #pkgs requiring this package
@@ -421,7 +420,7 @@ static void collectTE(rpm_color_t prefcolor, rpmte q,
int depth = q_tsi->depth;
rpmlog(RPMLOG_DEBUG, "%5d%5d%5d%5d %*s%c%s\n",
- *newOrderCount, q_tsi->npreds,
+ *newOrderCount, q_tsi->tsi_count,
q_tsi->tsi_qcnt,
depth, (2 * depth), "",
deptypechar,
@@ -632,9 +631,6 @@ int rpmtsOrder(rpmts ts)
pi = rpmtsiInit(ts);
while ((p = rpmtsiNext(pi, 0)) != NULL) {
tsortInfo p_tsi = rpmteTSI(p);
-
- int npreds = p_tsi->tsi_count;
- p_tsi->npreds = npreds;
p_tsi->depth = 1;
}
pi = rpmtsiFree(pi);