From 5898b6e1087175bc85e35ba147334fe87e3d7d06 Mon Sep 17 00:00:00 2001 From: Josh Stone Date: Mon, 29 Mar 2010 18:24:04 -0700 Subject: Remove unused code from iterate_over_functions * dwflpp.cxx (dwflpp::iterate_over_functions): No caller is using has_statement_num anymore (since 6b517475), so kill it. * tapsets.cxx (query_cu): Let the default call rule the day. --- dwflpp.cxx | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) (limited to 'dwflpp.cxx') diff --git a/dwflpp.cxx b/dwflpp.cxx index 0ff6ac16..c0def432 100644 --- a/dwflpp.cxx +++ b/dwflpp.cxx @@ -797,8 +797,7 @@ dwflpp::cu_function_caching_callback (Dwarf_Die* func, void *arg) int dwflpp::iterate_over_functions (int (* callback)(Dwarf_Die * func, base_query * q), - base_query * q, const string& function, - bool has_statement_num) + base_query * q, const string& function) { int rc = DWARF_CB_OK; assert (module); @@ -848,14 +847,6 @@ dwflpp::iterate_over_functions (int (* callback)(Dwarf_Die * func, base_query * } } } - else if (has_statement_num) // searching all for kernel.statement - { - for (it = v->begin(); it != v->end(); ++it) - { - rc = (*callback)(&it->second, q); - if (rc != DWARF_CB_OK) break; - } - } else // not a wildcard and no match in this CU { // do nothing -- cgit