Remove ast_node::type
authorIan Romanick <ian.d.romanick@intel.com>
Fri, 2 Apr 2010 18:03:47 +0000 (11:03 -0700)
committerIan Romanick <ian.d.romanick@intel.com>
Fri, 2 Apr 2010 18:05:16 +0000 (11:05 -0700)
It isn't a type (is was enum specifying the kind of node), it was
unused, and it was easily confused with actual type fields.  Kill with fire.

ast.h
glsl_parser_extras.cpp

diff --git a/ast.h b/ast.h
index f7cdf96..0dfd02a 100644 (file)
--- a/ast.h
+++ b/ast.h
@@ -75,9 +75,6 @@ public:
       this->location.column = locp.first_column;
    }
 
-
-   int  type;
-
    struct {
       unsigned source;
       unsigned line;
index 265782e..eb19ed7 100644 (file)
@@ -104,7 +104,7 @@ _mesa_ast_type_qualifier_print(const struct ast_type_qualifier *q)
 void
 ast_node::print(void) const
 {
-   printf("node_%d ", type);
+   printf("unhandled node ");
 }