diff --git a/src/core/src/index/mod.rs b/src/core/src/index/mod.rs index d319c12cf6..c71bb5e589 100644 --- a/src/core/src/index/mod.rs +++ b/src/core/src/index/mod.rs @@ -206,7 +206,6 @@ where } } -// note all mh should be selected/downsampled prior to being passed in here. #[allow(clippy::too_many_arguments)] pub fn calculate_gather_stats( orig_query: &KmerMinHash, diff --git a/src/core/src/index/revindex/disk_revindex.rs b/src/core/src/index/revindex/disk_revindex.rs index 2cd5a56b81..b11ddb1682 100644 --- a/src/core/src/index/revindex/disk_revindex.rs +++ b/src/core/src/index/revindex/disk_revindex.rs @@ -372,7 +372,6 @@ impl RevIndexOps for RevIndex { let mut query = KmerMinHashBTree::from(orig_query.clone()); let mut sum_weighted_found = 0; let _selection = selection.unwrap_or_else(|| self.collection.selection()); - let orig_query_ds = orig_query.clone(); let total_weighted_hashes = orig_query.sum_abunds(); // or set this with user --track-abundance? @@ -393,7 +392,6 @@ impl RevIndexOps for RevIndex { break; } - // this should downsample mh for us let match_sig = self.collection.sig_for_dataset(dataset_id)?; // get downsampled minhashes for comparison. @@ -419,7 +417,7 @@ impl RevIndexOps for RevIndex { // Calculate stats let gather_result = calculate_gather_stats( - &orig_query_ds, + &orig_query, query_mh, match_sig, match_size,