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 /dwflpp.cxx | |
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.
Diffstat (limited to 'dwflpp.cxx')
-rw-r--r-- | dwflpp.cxx | 11 |
1 files changed, 1 insertions, 10 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 |