glsl: removed unused dimension_count varible
This variable is no longer needed after the cleanup to the code prior to the first arrays of array series Signed-off-by: Timothy Arceri <t_arceri@yahoo.com.au> Reviewed-by: Matt Turner <mattst88@gmail.com>
This commit is contained in:
@@ -280,14 +280,14 @@ class ast_array_specifier : public ast_node {
|
|||||||
public:
|
public:
|
||||||
/** Unsized array specifier ([]) */
|
/** Unsized array specifier ([]) */
|
||||||
explicit ast_array_specifier(const struct YYLTYPE &locp)
|
explicit ast_array_specifier(const struct YYLTYPE &locp)
|
||||||
: dimension_count(1), is_unsized_array(true)
|
: is_unsized_array(true)
|
||||||
{
|
{
|
||||||
set_location(locp);
|
set_location(locp);
|
||||||
}
|
}
|
||||||
|
|
||||||
/** Sized array specifier ([dim]) */
|
/** Sized array specifier ([dim]) */
|
||||||
ast_array_specifier(const struct YYLTYPE &locp, ast_expression *dim)
|
ast_array_specifier(const struct YYLTYPE &locp, ast_expression *dim)
|
||||||
: dimension_count(1), is_unsized_array(false)
|
: is_unsized_array(false)
|
||||||
{
|
{
|
||||||
set_location(locp);
|
set_location(locp);
|
||||||
array_dimensions.push_tail(&dim->link);
|
array_dimensions.push_tail(&dim->link);
|
||||||
@@ -296,14 +296,10 @@ public:
|
|||||||
void add_dimension(ast_expression *dim)
|
void add_dimension(ast_expression *dim)
|
||||||
{
|
{
|
||||||
array_dimensions.push_tail(&dim->link);
|
array_dimensions.push_tail(&dim->link);
|
||||||
dimension_count++;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
virtual void print(void) const;
|
virtual void print(void) const;
|
||||||
|
|
||||||
/* Count including sized and unsized dimensions */
|
|
||||||
unsigned dimension_count;
|
|
||||||
|
|
||||||
/* If true, this means that the array has an unsized outermost dimension. */
|
/* If true, this means that the array has an unsized outermost dimension. */
|
||||||
bool is_unsized_array;
|
bool is_unsized_array;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user