From fc80eab8cc1cbebad78df914a885cb74cbd91f22 Mon Sep 17 00:00:00 2001 From: Josh Stone Date: Thu, 25 Mar 2010 19:35:53 -0700 Subject: Remove probe_point code duplication * staptree.cxx (probe_point::str): Don't duplicate ::print -- reuse it. --- staptree.cxx | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) diff --git a/staptree.cxx b/staptree.cxx index 643f61b3..bb8b6249 100644 --- a/staptree.cxx +++ b/staptree.cxx @@ -1091,20 +1091,7 @@ void probe_point::print (ostream& o) const string probe_point::str () { ostringstream o; - for (unsigned i=0; i0) o << "."; - probe_point::component* c = components[i]; - o << c->functor; - if (c->arg) - o << "(" << *c->arg << ")"; - } - if (sufficient) - o << "!"; - else if (optional) // sufficient implies optional - o << "?"; - if (condition) - o<< " if (" << *condition << ")"; + print(o); return o.str(); } -- cgit