From 599a6d71f8c1caa3fb8ede32766e125ea0211eab Mon Sep 17 00:00:00 2001 From: Harpreet Sangar Date: Tue, 11 Apr 2023 11:27:31 +0530 Subject: [PATCH] Refactor `Index::search_wildcard`. --- src/index.cpp | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/index.cpp b/src/index.cpp index 831f0e02..a55646bc 100644 --- a/src/index.cpp +++ b/src/index.cpp @@ -4529,12 +4529,6 @@ void Index::search_wildcard(filter_node_t const* const& filter_tree_root, filter_result_iterator->get_n_ids(window_size, excluded_result_index, exclude_token_ids, exclude_token_ids_size, batch_result_ids); - uint32_t* new_all_result_ids = nullptr; - all_result_ids_len = ArrayUtils::or_scalar(all_result_ids, all_result_ids_len, batch_result_ids.data(), - batch_result_ids.size(), &new_all_result_ids); - delete [] all_result_ids; - all_result_ids = new_all_result_ids; - num_queued++; searched_queries.push_back({});