From: Ian Romanick Date: Fri, 2 Apr 2010 18:03:47 +0000 (-0700) Subject: Remove ast_node::type X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=03d3f3ab71ba280071f54cb60505212be6710f8e;p=mesa.git Remove ast_node::type 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. --- diff --git a/ast.h b/ast.h index f7cdf96d099..0dfd02a9cd1 100644 --- a/ast.h +++ b/ast.h @@ -75,9 +75,6 @@ public: this->location.column = locp.first_column; } - - int type; - struct { unsigned source; unsigned line; diff --git a/glsl_parser_extras.cpp b/glsl_parser_extras.cpp index 265782ebdab..eb19ed7b91b 100644 --- a/glsl_parser_extras.cpp +++ b/glsl_parser_extras.cpp @@ -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 "); }