summaryrefslogtreecommitdiffstats
path: root/staptree.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'staptree.cxx')
-rw-r--r--staptree.cxx22
1 files changed, 1 insertions, 21 deletions
diff --git a/staptree.cxx b/staptree.cxx
index 8cd9ca83..ed2bc00e 100644
--- a/staptree.cxx
+++ b/staptree.cxx
@@ -89,7 +89,7 @@ probe_point::probe_point ():
unsigned probe::last_probeidx = 0;
probe::probe ():
- body (0), tok (0), condition (0)
+ body (0), tok (0)
{
this->name = string ("probe_") + lex_cast<string>(last_probeidx ++);
}
@@ -899,26 +899,6 @@ probe::collect_derivation_chain (std::vector<derived_probe*> &probes_list)
probes_list.push_back((derived_probe*)this);
}
-void
-probe::add_condition (expression* e)
-{
- if (e)
- {
- if (this->condition)
- {
- logical_and_expr *la = new logical_and_expr ();
- la->op = "&&";
- la->left = this->condition;
- la->right = e;
- la->tok = e->tok;
- this->condition = la;
- }
- else
- {
- this->condition = e;
- }
- }
-}
void probe_point::print (ostream& o) const
{