Linkplan: eliminate unused branching

This commit is contained in:
Alain Emilia Anna Zscheile 2024-07-24 00:11:11 +02:00
parent 07b5cd8e6a
commit c712c15e48

View file

@ -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;