Linkplan: eliminate unused branching
This commit is contained in:
parent
07b5cd8e6a
commit
c712c15e48
1 changed files with 1 additions and 3 deletions
|
@ -119,9 +119,7 @@ fn calculate_votes(mut que: Vec<Box<[u8]>>) -> Vec<BTreeMap<Box<[u8]>, VoteEntry
|
||||||
v.best_parent = pbs_index.0.try_into().unwrap();
|
v.best_parent = pbs_index.0.try_into().unwrap();
|
||||||
|
|
||||||
// propagate dependency
|
// propagate dependency
|
||||||
if v.is_used {
|
plvl.get_mut(&pbs).unwrap().is_used = true;
|
||||||
plvl.get_mut(&pbs).unwrap().is_used = true;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
levels[lid + 1] = taken;
|
levels[lid + 1] = taken;
|
||||||
|
|
Loading…
Reference in a new issue