summaryrefslogtreecommitdiff
path: root/src/node.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/node.cc')
-rw-r--r--src/node.cc23
1 files changed, 2 insertions, 21 deletions
diff --git a/src/node.cc b/src/node.cc
index dc2fc0c..69c0692 100644
--- a/src/node.cc
+++ b/src/node.cc
@@ -64,26 +64,17 @@ Response AbstractPolyNode::accept(const class State &state, Visitor &visitor) co
return visitor.visit(state, *this);
}
-// FIXME: Temporarily offer a top-level dump function to keep existing code running
-QString AbstractNode::dump() const
-{
- NodeDumper dumper;
- Traverser trav(dumper, *this, Traverser::PRE_AND_POSTFIX);
- trav.execute();
- return QString::fromStdString(dumper.getDump() + "\n");
-}
-
std::string AbstractNode::toString() const
{
std::stringstream stream;
- stream << "n" << this->index() << ": group()";
+ stream << "group()";
return stream.str();
}
std::string AbstractIntersectionNode::toString() const
{
std::stringstream stream;
- stream << "n" << this->index() << ": intersection()";
+ stream << "intersection()";
return stream.str();
}
@@ -161,13 +152,3 @@ std::ostream &operator<<(std::ostream &stream, const AbstractNode &node)
stream << node.toString();
return stream;
}
-
-QString AbstractNode::mk_cache_id() const
-{
- QString cache_id = dump();
- cache_id.remove(QRegExp("[a-zA-Z_][a-zA-Z_0-9]*:"));
- cache_id.remove(' ');
- cache_id.remove('\t');
- cache_id.remove('\n');
- return cache_id;
-}
contact: Jan Huwald // Impressum