diff options
author | Josh Stone <jistone@redhat.com> | 2010-03-29 18:24:04 -0700 |
---|---|---|
committer | Josh Stone <jistone@redhat.com> | 2010-03-30 15:16:35 -0700 |
commit | 5898b6e1087175bc85e35ba147334fe87e3d7d06 (patch) | |
tree | 48690136e6ebeeccb79b7a0f02d48f4fd4d05b04 | |
parent | 1713a05f2afa6df663a7fd3552849759a7d3ff48 (diff) | |
download | systemtap-steved-5898b6e1087175bc85e35ba147334fe87e3d7d06.tar.gz systemtap-steved-5898b6e1087175bc85e35ba147334fe87e3d7d06.tar.xz systemtap-steved-5898b6e1087175bc85e35ba147334fe87e3d7d06.zip |
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.
-rw-r--r-- | dwflpp.cxx | 11 | ||||
-rw-r--r-- | dwflpp.h | 3 | ||||
-rw-r--r-- | tapsets.cxx | 3 |
3 files changed, 3 insertions, 14 deletions
@@ -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 @@ -218,8 +218,7 @@ struct dwflpp mod_cu_function_cache_t cu_function_cache; int iterate_over_functions (int (* callback)(Dwarf_Die * func, base_query * q), - base_query * q, const std::string& function, - bool has_statement_num=false); + base_query * q, const std::string& function); void iterate_over_srcfile_lines (char const * srcfile, int lines[2], diff --git a/tapsets.cxx b/tapsets.cxx index 97c6fb76..8a78e04c 100644 --- a/tapsets.cxx +++ b/tapsets.cxx @@ -1597,8 +1597,7 @@ query_cu (Dwarf_Die * cudie, void * arg) // Pick up [entrypc, name, DIE] tuples for all the functions // matching the query, and fill in the prologue endings of them // all in a single pass. - int rc = q->dw.iterate_over_functions (query_dwarf_func, q, - q->function, false); + int rc = q->dw.iterate_over_functions (query_dwarf_func, q, q->function); if (rc != DWARF_CB_OK) q->query_done = true; |