remove unused AST optimization code