summaryrefslogtreecommitdiffstats
path: root/src/glsl/ast.h
diff options
context:
space:
mode:
authorTimothy Arceri <t_arceri@yahoo.com.au>2014-02-26 08:31:25 +1100
committerTimothy Arceri <t_arceri@yahoo.com.au>2014-02-26 08:31:25 +1100
commit376a98d345dfc3da8d5b0f1e489196f861c4e754 (patch)
tree97caefdaa4ef775bb5035d16eb163f30af021785 /src/glsl/ast.h
parentd9b983519c63b9072677364a6e399d213a1855e5 (diff)
downloadexternal_mesa3d-376a98d345dfc3da8d5b0f1e489196f861c4e754.zip
external_mesa3d-376a98d345dfc3da8d5b0f1e489196f861c4e754.tar.gz
external_mesa3d-376a98d345dfc3da8d5b0f1e489196f861c4e754.tar.bz2
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>
Diffstat (limited to 'src/glsl/ast.h')
-rw-r--r--src/glsl/ast.h8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/glsl/ast.h b/src/glsl/ast.h
index 2d7333f..1efb306 100644
--- a/src/glsl/ast.h
+++ b/src/glsl/ast.h
@@ -280,14 +280,14 @@ class ast_array_specifier : public ast_node {
public:
/** Unsized array specifier ([]) */
explicit ast_array_specifier(const struct YYLTYPE &locp)
- : dimension_count(1), is_unsized_array(true)
+ : is_unsized_array(true)
{
set_location(locp);
}
/** Sized array specifier ([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);
array_dimensions.push_tail(&dim->link);
@@ -296,14 +296,10 @@ public:
void add_dimension(ast_expression *dim)
{
array_dimensions.push_tail(&dim->link);
- dimension_count++;
}
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. */
bool is_unsized_array;