From 684ae0192b3862b6d0d10292987f2ab04c5f6414 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ante=20Pu=C5=A1i=C4=87?= <ante.pusic@memgraph.io> Date: Mon, 15 Jan 2024 20:28:44 +0100 Subject: [PATCH] Clean query module up --- query_modules/text_search_module.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/query_modules/text_search_module.cpp b/query_modules/text_search_module.cpp index dd0d2b1d8..6819fcd9d 100644 --- a/query_modules/text_search_module.cpp +++ b/query_modules/text_search_module.cpp @@ -10,9 +10,6 @@ // licenses/APL.txt. #include <mgp.hpp> -// #include "query/procedure/mg_procedure_impl.hpp" -// #include "storage/v2/indices/mgcxx_mock.hpp" -#include "storage/v2/mgcxx_mock.hpp" namespace TextSearch { constexpr std::string_view kProcedureSearch = "search"; @@ -23,7 +20,7 @@ constexpr std::string_view kReturnNode = "node"; void Search(mgp_list *args, mgp_graph *memgraph_graph, mgp_result *result, mgp_memory *memory); } // namespace TextSearch -void Search(mgp_list *args, mgp_graph *memgraph_graph, mgp_result *result, mgp_memory *memory) { +void TextSearch::Search(mgp_list *args, mgp_graph *memgraph_graph, mgp_result *result, mgp_memory *memory) { mgp::MemoryDispatcherGuard guard{memory}; const auto record_factory = mgp::RecordFactory(result); auto arguments = mgp::List(args);