From b57e5a6bd72dc46d29a8fa0dd1eb4106fe72d7bc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Trahay?= <francois.trahay@telecom-sudparis.eu> Date: Fri, 6 Sep 2024 11:11:39 +0200 Subject: [PATCH] remove dead code --- src/parser/OTF2Parser/ParserEventOTF2.cpp | 44 ----------------------- 1 file changed, 44 deletions(-) diff --git a/src/parser/OTF2Parser/ParserEventOTF2.cpp b/src/parser/OTF2Parser/ParserEventOTF2.cpp index b2d41b5b..ef6bbf1c 100644 --- a/src/parser/OTF2Parser/ParserEventOTF2.cpp +++ b/src/parser/OTF2Parser/ParserEventOTF2.cpp @@ -268,48 +268,6 @@ OTF2_CallbackCode ParserEventOTF2::callback_Enter(OTF2_LocationRef locationID, OTF2_Function temp_function = ParserDefinitionOTF2::get_function_by_id(regionID); const String function_name = String(ParserDefinitionOTF2::get_string_by_id(temp_function._name_id)); return pushState(locationID, time, t, function_name); - -#if 0 - Date d = ParserDefinitionOTF2::get_timestamp(time); - OTF2_Function temp_function = ParserDefinitionOTF2::get_function_by_id(regionID); - const String function_name = String(ParserDefinitionOTF2::get_string_by_id(temp_function._name_id)); - map<string, Value *> extra_fields; - - // get the container - OTF2_Location *temp_location = ParserDefinitionOTF2::get_location_by_id(locationID); - const String proc_name = String(ParserDefinitionOTF2::get_string_id(temp_location)); - Container *temp_container = temp_location->container; - -#if defined(OTF2_DEBUG) - cout << d.to_string() << " Enter_print(location=" << proc_name.to_string() << ", region=" << regionID << ", fname=" << function_name.to_string() << ")\n"; -#endif // defined(OTF2_DEBUG) - - // get the state type - String state_type_string("Function"); - StateType *temp_state_type = t->search_state_type(state_type_string); - if (temp_state_type == 0) { - Name name_temp(state_type_string); - ContainerType cont_type = *temp_container->get_type(); - t->define_state_type(name_temp, &cont_type, extra_fields); - temp_state_type = t->search_state_type(state_type_string); - assert(temp_state_type != 0); - } - - // get the entity value - EntityValue *temp_value = NULL; - temp_value = t->search_entity_value(function_name, temp_state_type); - if (temp_value == NULL) { - map<string, Value *> opt; - Name entity_name(function_name); - opt["Color"] = ParserDefinitionOTF2::get_color(regionID); - t->define_entity_value(entity_name, temp_state_type, opt); - temp_value = t->search_entity_value(function_name, temp_state_type); - } - assert(temp_value); - - t->push_state(d, temp_state_type, temp_container, temp_value, extra_fields); -#endif - return OTF2_CALLBACK_SUCCESS; } OTF2_CallbackCode ParserEventOTF2::callback_Leave(OTF2_LocationRef locationID, @@ -1140,8 +1098,6 @@ OTF2_CallbackCode ParserEventOTF2::callback_ThreadEnd(OTF2_LocationRef locationI Trace *t = (Trace *)userData; const String function_name(""); return popState(locationID, time, t, function_name); - - return OTF2_CALLBACK_SUCCESS; } OTF2_CallbackCode ParserEventOTF2::callback_CallingContextEnter(OTF2_LocationRef locationID, -- GitLab