From e38723d2391f4e274b46317187179a18bfb5135f Mon Sep 17 00:00:00 2001 From: hunt Date: Wed, 12 Sep 2007 19:10:36 +0000 Subject: 2007-09-12 Martin Hunt PR 5019 * elaborate.cxx (visit_hist_op): Remove log histogram param. * translate.cxx (assert_hist_compatible): Ditto. * staptree.cxx (hist_op::print): Ditto. * session.h (statistic_decl): Ditto. * parse.cxx (expect_number): Allow negative numbers. Also validate that input is really numeric. This is used by histograms to get the parameters. (parse_hist_op_or_bare_name): Remove code to get parameter for log histograms. --- staptree.cxx | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'staptree.cxx') diff --git a/staptree.cxx b/staptree.cxx index 10572803..a1a8211b 100644 --- a/staptree.cxx +++ b/staptree.cxx @@ -718,13 +718,9 @@ hist_op::print (ostream& o) const break; case hist_log: - assert(params.size() == 1); + assert(params.size() == 0); o << "hist_log("; stat->print(o); - for (size_t i = 0; i < params.size(); ++i) - { - o << ", " << params[i]; - } o << ")"; break; } -- cgit