Remove spurious TODO

As long as the subtraced amount is less than NOVEL_TREE_THRESHOLD, it
will not overflow.
a_star_module
Wilfred Hughes 2022-01-01 17:26:05 +07:00
parent 077ded6081
commit 0c10541bfc
1 changed files with 0 additions and 2 deletions

@ -131,8 +131,6 @@ impl Edge {
// novel rather than marking 90% of the children as
// novel. This stops us matching up completely unrelated trees.
NovelTreeLHS { num_descendants } | NovelTreeRHS { num_descendants } => {
// TODO: this crashes on debug builds if we have less
// than 20 descendants.
300 + (*num_descendants as u64 - 10)
* NovelDelimiterLHS { contiguous: false }.cost()
}