From: Arnaud Giersch Date: Sun, 5 May 2019 20:57:46 +0000 (+0200) Subject: Kill unused static function. X-Git-Tag: v3.22.4~134 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/ea004bc6314126b0d5c878636ed442f3592a0d10 Kill unused static function. --- diff --git a/teshsuite/mc/dwarf/dwarf.cpp b/teshsuite/mc/dwarf/dwarf.cpp index 27a07ce272..cd3cc80e65 100644 --- a/teshsuite/mc/dwarf/dwarf.cpp +++ b/teshsuite/mc/dwarf/dwarf.cpp @@ -30,14 +30,6 @@ struct 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) { @@ -161,5 +153,5 @@ int main(int argc, char** argv) s_foo my_foo = {0}; test_type_by_name(process, my_foo); - _exit(0); + return 0; }