diff -r c8cd69801b7e -r 3bd2704d9ba9 stage3/constant_folding.hh --- a/stage3/constant_folding.hh Fri Dec 28 16:24:17 2012 +0100 +++ b/stage3/constant_folding.hh Mon Dec 31 11:02:38 2012 +0100 @@ -43,30 +43,6 @@ #include "../absyntax_utils/absyntax_utils.hh" -class convert_c : public iterator_visitor_c { - std::string text; - -public: - convert_c(symbol_c *symbol = NULL) { - text = ""; - } - - std::string toString(symbol_c *symbol) { - symbol->accept(*this); - return text; - } - - void *visit(identifier_c *symbol) { - text = symbol->value; - return NULL; - } - - void *visit(symbolic_variable_c *symbol) { - symbol->var_name->accept(*this); - return NULL; - } -}; - class constant_folding_c : public iterator_visitor_c { search_varfb_instance_type_c *search_varfb_instance_type; int error_count; @@ -76,7 +52,6 @@ symbol_c *prev_il_instruction; /* the current IL operand being analyzed */ symbol_c *il_operand; - convert_c convert; public: constant_folding_c(symbol_c *symbol = NULL);