X-Git-Url: http://git.tdb.fi/?p=libs%2Fgl.git;a=blobdiff_plain;f=source%2Fglsl%2Fvisitor.h;h=30b9b484aa9a86948a9a0ae9604ace91c7ea5d1b;hp=6fe1868ca8221a4619fc30cb889524b68f7b9f9e;hb=cd01b904990d306eadd120f306b1d0ceb4d8f5c8;hpb=78f43047696fbb629e4bc9cfb1068e3fef77cb0a diff --git a/source/glsl/visitor.h b/source/glsl/visitor.h index 6fe1868c..30b9b484 100644 --- a/source/glsl/visitor.h +++ b/source/glsl/visitor.h @@ -74,20 +74,6 @@ public: virtual void visit(Return &); }; -/** Gathers nodes of a particular type from the syntax tree. */ -template -class NodeGatherer: private TraversingVisitor -{ -private: - std::vector nodes; - -public: - const std::vector &apply(Stage &s) { s.content.visit(*this); return nodes; } - -private: - virtual void visit(T &n) { nodes.push_back(&n); } -}; - /** Removes a set of nodes from the syntax tree. */ class NodeRemover: private TraversingVisitor {