From dff7f08b8c8eacc198a0b586a88cb33b0d6a16b0 Mon Sep 17 00:00:00 2001 From: miyakoshi Date: Mon, 13 May 2024 13:18:01 +0900 Subject: [PATCH] special duplicate check removal using static variables --- CARET_trace/src/hooked_trace_points.cpp | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/CARET_trace/src/hooked_trace_points.cpp b/CARET_trace/src/hooked_trace_points.cpp index 9530c88c..c597d14b 100644 --- a/CARET_trace/src/hooked_trace_points.cpp +++ b/CARET_trace/src/hooked_trace_points.cpp @@ -479,8 +479,6 @@ void SYMBOL_CONCAT_3( data_container.assign_add_callback_group(record); } - static KeysSet recorded_args; - auto group_addr_ = const_cast(group_addr); auto node_addr_ = const_cast(node_addr); @@ -495,11 +493,8 @@ void SYMBOL_CONCAT_3( auto node_handle = static_cast(node_ptr->get_rcl_node_handle()); data_container.store_add_callback_group( obj, group_addr, group_type_name.c_str(), node_handle, now); - if (!recorded_args.has(obj, group_addr_, node_addr_)) { - recorded_args.insert(obj, group_addr_, node_addr_); - record(obj, group_addr, group_type_name.c_str(), node_handle, now); - } + record(obj, group_addr, group_type_name.c_str(), node_handle, now); } bool SYMBOL_CONCAT_3(