summaryrefslogtreecommitdiffstats
path: root/src/glsl/ir_constant_expression.cpp
diff options
context:
space:
mode:
authorIan Romanick <[email protected]>2014-03-12 15:14:12 -0700
committerIan Romanick <[email protected]>2014-03-25 12:09:36 -0700
commit6429d6276da27e225e04c056cbb5c14a8f770519 (patch)
tree7195122fcf502f86ee5ccf08c8bae14d69982a47 /src/glsl/ir_constant_expression.cpp
parentbb0d6db974ea920491aca2eb011064fd3c2fb676 (diff)
glsl: Remove ir_dereference::constant_referenced
All of the functionality is implemented in a private function in the one file where it is used. Signed-off-by: Ian Romanick <[email protected]> Reviewed-by: Topi Pohjolainen <[email protected]>
Diffstat (limited to 'src/glsl/ir_constant_expression.cpp')
-rw-r--r--src/glsl/ir_constant_expression.cpp25
1 files changed, 0 insertions, 25 deletions
diff --git a/src/glsl/ir_constant_expression.cpp b/src/glsl/ir_constant_expression.cpp
index 53db618067d..ea9e84ab7fd 100644
--- a/src/glsl/ir_constant_expression.cpp
+++ b/src/glsl/ir_constant_expression.cpp
@@ -387,14 +387,11 @@ unpack_half_1x16(uint16_t u)
}
/**
- * \name Functions to get the constant referenced by an r-value
- *
* Get the constant that is ultimately referenced by an r-value, in a constant
* expression evaluation context.
*
* The offset is used when the reference is to a specific column of a matrix.
*/
-/*@{*/
static bool
constant_referenced(const ir_dereference *deref,
struct hash_table *variable_context,
@@ -489,28 +486,6 @@ constant_referenced(const ir_dereference *deref,
return store != NULL;
}
-void
-ir_dereference_variable::constant_referenced(struct hash_table *variable_context,
- ir_constant *&store, int &offset) const
-{
- ::constant_referenced(this, variable_context, store, offset);
-}
-
-void
-ir_dereference_array::constant_referenced(struct hash_table *variable_context,
- ir_constant *&store, int &offset) const
-{
- ::constant_referenced(this, variable_context, store, offset);
-}
-
-void
-ir_dereference_record::constant_referenced(struct hash_table *variable_context,
- ir_constant *&store, int &offset) const
-{
- ::constant_referenced(this, variable_context, store, offset);
-}
-/*@}*/
-
ir_constant *
ir_rvalue::constant_expression_value(struct hash_table *variable_context)