solver: remove an unneeded name state variable

cute-signatures
Timo Teräs 2012-02-16 08:28:08 +02:00
parent 7a4647d27b
commit 7399f1950f
1 changed files with 0 additions and 5 deletions

View File

@ -47,7 +47,6 @@ struct apk_name_state {
struct apk_name *name; struct apk_name *name;
struct apk_package *chosen; struct apk_package *chosen;
struct apk_score minimum_penalty; struct apk_score minimum_penalty;
unsigned int topology_last_touched;
unsigned short requirers; unsigned short requirers;
unsigned short install_ifs; 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", dbg_printf("trigger_install_if: " PKG_VER_FMT " triggered\n",
PKG_VER_PRINTF(pkg)); PKG_VER_PRINTF(pkg));
ns->topology_last_touched = ss->topology_position;
ns->install_ifs++; ns->install_ifs++;
update_name_state(ss, pkg->name); 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", dbg_printf("untrigger_install_if: " PKG_VER_FMT " no longer triggered\n",
PKG_VER_PRINTF(pkg)); PKG_VER_PRINTF(pkg));
ns->topology_last_touched = ss->topology_position;
ns->install_ifs--; ns->install_ifs--;
update_name_state(ss, pkg->name); 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) if (!dep->optional)
ns->requirers++; ns->requirers++;
ns->topology_last_touched = ss->topology_position;
update_name_state(ss, name); update_name_state(ss, name);
} }
@ -842,7 +838,6 @@ static void undo_constraint(struct apk_solver_state *ss, struct apk_dependency *
if (!dep->optional) if (!dep->optional)
ns->requirers--; ns->requirers--;
ns->topology_last_touched = ss->topology_position;
update_name_state(ss, name); update_name_state(ss, name);
} }