summaryrefslogtreecommitdiff
path: root/src/solver.c
diff options
context:
space:
mode:
authorTimo Teräs <timo.teras@iki.fi>2012-02-16 08:28:08 +0200
committerTimo Teräs <timo.teras@iki.fi>2012-02-16 08:28:08 +0200
commit7399f1950f5418dc7942579d5e9ed9807c764cce (patch)
tree9a2a947b235193026a756c607cf69fe59f832cdb /src/solver.c
parent7a4647d27bde6eb3034d19394b7d419f2af136f3 (diff)
downloadapk-tools-7399f1950f5418dc7942579d5e9ed9807c764cce.tar.gz
apk-tools-7399f1950f5418dc7942579d5e9ed9807c764cce.tar.bz2
apk-tools-7399f1950f5418dc7942579d5e9ed9807c764cce.tar.xz
apk-tools-7399f1950f5418dc7942579d5e9ed9807c764cce.zip
solver: remove an unneeded name state variable
Diffstat (limited to 'src/solver.c')
-rw-r--r--src/solver.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/src/solver.c b/src/solver.c
index e233f3b..9581aa8 100644
--- a/src/solver.c
+++ b/src/solver.c
@@ -47,7 +47,6 @@ struct apk_name_state {
struct apk_name *name;
struct apk_package *chosen;
struct apk_score minimum_penalty;
- unsigned int topology_last_touched;
unsigned short requirers;
unsigned short install_ifs;
@@ -567,7 +566,6 @@ static void trigger_install_if(struct apk_solver_state *ss,
dbg_printf("trigger_install_if: " PKG_VER_FMT " triggered\n",
PKG_VER_PRINTF(pkg));
- ns->topology_last_touched = ss->topology_position;
ns->install_ifs++;
update_name_state(ss, pkg->name);
}
@@ -581,7 +579,6 @@ static void untrigger_install_if(struct apk_solver_state *ss,
dbg_printf("untrigger_install_if: " PKG_VER_FMT " no longer triggered\n",
PKG_VER_PRINTF(pkg));
- ns->topology_last_touched = ss->topology_position;
ns->install_ifs--;
update_name_state(ss, pkg->name);
}
@@ -800,7 +797,6 @@ static void apply_constraint(struct apk_solver_state *ss, struct apk_dependency
if (!dep->optional)
ns->requirers++;
- ns->topology_last_touched = ss->topology_position;
update_name_state(ss, name);
}
@@ -842,7 +838,6 @@ static void undo_constraint(struct apk_solver_state *ss, struct apk_dependency *
if (!dep->optional)
ns->requirers--;
- ns->topology_last_touched = ss->topology_position;
update_name_state(ss, name);
}