diff options
author | Andreas Krennmair <ak@synflood.at> | 2010-03-22 02:48:17 +0100 |
---|---|---|
committer | Andreas Krennmair <ak@synflood.at> | 2010-03-22 02:48:17 +0100 |
commit | f79687f37f6762645bfe7fb529d51823f3b9c76f (patch) | |
tree | 28ce6d89ec0fb06fed50bc878a0a76314c58ef5e /filter | |
parent | 8337b620bcbde89253f7c38355bc9893b69c7953 (diff) |
clean up dead code.
Diffstat (limited to 'filter')
-rw-r--r-- | filter/FilterParser.cpp | 15 | ||||
-rw-r--r-- | filter/FilterParser.h | 2 |
2 files changed, 0 insertions, 17 deletions
diff --git a/filter/FilterParser.cpp b/filter/FilterParser.cpp index cbbf9a22..2b06d6e0 100644 --- a/filter/FilterParser.cpp +++ b/filter/FilterParser.cpp @@ -113,21 +113,6 @@ void FilterParser::cleanup_r(expression * e) { } } -void FilterParser::print_tree() { - print_tree_r(root,0); -} - -void FilterParser::print_tree_r(expression * e, unsigned int depth) { - if (e) { - print_tree_r(e->l, depth + 1); - for (unsigned int i=0;i<depth;++i) { - printf("\t"); - } - printf("op = %u name = %s literal = %s\n", e->op, e->name.c_str(), e->literal.c_str()); - print_tree_r(e->r, depth + 1); - } -} - expression::expression(const std::string& n, const std::string& lit, int o) : name(n), literal(lit), op(o), l(NULL), r(NULL), parent(NULL), regex(NULL) { if (literal[0] == '"' && literal[literal.length()-1] == '"') { literal = literal.substr(1,literal.length()-2); diff --git a/filter/FilterParser.h b/filter/FilterParser.h index ab83d81e..bb62076a 100644 --- a/filter/FilterParser.h +++ b/filter/FilterParser.h @@ -34,8 +34,6 @@ class FilterParser { bool parse_string(const std::string& str); void cleanup(); - void print_tree(); - inline expression * get_root() { return root; } FilterParser& operator=(FilterParser& p); |