summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJosh Stone <jistone@redhat.com>2010-03-29 18:24:04 -0700
committerJosh Stone <jistone@redhat.com>2010-03-30 15:16:35 -0700
commit5898b6e1087175bc85e35ba147334fe87e3d7d06 (patch)
tree48690136e6ebeeccb79b7a0f02d48f4fd4d05b04
parent1713a05f2afa6df663a7fd3552849759a7d3ff48 (diff)
downloadsystemtap-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.cxx11
-rw-r--r--dwflpp.h3
-rw-r--r--tapsets.cxx3
3 files changed, 3 insertions, 14 deletions
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
diff --git a/dwflpp.h b/dwflpp.h
index 523dd883..ce4b70f4 100644
--- a/dwflpp.h
+++ b/dwflpp.h
@@ -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;