From ea004bc6314126b0d5c878636ed442f3592a0d10 Mon Sep 17 00:00:00 2001 From: Arnaud Giersch Date: Sun, 5 May 2019 22:57:46 +0200 Subject: [PATCH] Kill unused static function. --- teshsuite/mc/dwarf/dwarf.cpp | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) 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; } -- 2.20.1