]> git.tdb.fi Git - libs/gl.git/blobdiff - source/glsl/visitor.h
Remove the NodeGatherer visitor
[libs/gl.git] / source / glsl / visitor.h
index 6fe1868ca8221a4619fc30cb889524b68f7b9f9e..30b9b484aa9a86948a9a0ae9604ace91c7ea5d1b 100644 (file)
@@ -74,20 +74,6 @@ public:
        virtual void visit(Return &);
 };
 
-/** Gathers nodes of a particular type from the syntax tree. */
-template<typename T>
-class NodeGatherer: private TraversingVisitor
-{
-private:
-       std::vector<T *> nodes;
-
-public:
-       const std::vector<T *> &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
 {