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.
This commit is contained in:
@@ -75,9 +75,6 @@ public:
|
||||
this->location.column = locp.first_column;
|
||||
}
|
||||
|
||||
|
||||
int type;
|
||||
|
||||
struct {
|
||||
unsigned source;
|
||||
unsigned line;
|
||||
|
||||
@@ -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 ");
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user