Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Kill unused static function.
authorArnaud Giersch <arnaud.giersch@univ-fcomte.fr>
Sun, 5 May 2019 20:57:46 +0000 (22:57 +0200)
committerArnaud Giersch <arnaud.giersch@univ-fcomte.fr>
Mon, 6 May 2019 11:49:56 +0000 (13:49 +0200)
teshsuite/mc/dwarf/dwarf.cpp

index 27a07ce..cd3cc80 100644 (file)
@@ -30,14 +30,6 @@ struct some_struct {
 };
 some_struct test_some_struct;
 
 };
 some_struct test_some_struct;
 
-static simgrid::mc::Type* find_type_by_name(simgrid::mc::ObjectInformation* info, const char* name)
-{
-  for (auto& entry : info->types)
-    if(entry.second.name == name)
-      return &entry.second;
-  return nullptr;
-}
-
 static simgrid::mc::Frame* find_function_by_name(
     simgrid::mc::ObjectInformation* info, const char* name)
 {
 static simgrid::mc::Frame* find_function_by_name(
     simgrid::mc::ObjectInformation* info, const char* name)
 {
@@ -161,5 +153,5 @@ int main(int argc, char** argv)
   s_foo my_foo = {0};
   test_type_by_name(process, my_foo);
 
   s_foo my_foo = {0};
   test_type_by_name(process, my_foo);
 
-  _exit(0);
+  return 0;
 }
 }