From 0c10541bfc5bae68618e823ac4b6ff920e77e775 Mon Sep 17 00:00:00 2001 From: Wilfred Hughes Date: Sat, 1 Jan 2022 17:26:05 -0800 Subject: [PATCH] Remove spurious TODO As long as the subtraced amount is less than NOVEL_TREE_THRESHOLD, it will not overflow. --- src/graph.rs | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/graph.rs b/src/graph.rs index cf19b8b5c..5b6a8f53b 100644 --- a/src/graph.rs +++ b/src/graph.rs @@ -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() }