Skip to content

Commit

Permalink
clean up dead code.
Browse files Browse the repository at this point in the history
  • Loading branch information
akrennmair committed Mar 22, 2010
1 parent 8337b62 commit f79687f
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 17 deletions.
15 changes: 0 additions & 15 deletions filter/FilterParser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
2 changes: 0 additions & 2 deletions filter/FilterParser.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit f79687f

Please sign in to comment.