summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ir.cpp5
-rw-r--r--ir.h13
2 files changed, 0 insertions, 18 deletions
diff --git a/ir.cpp b/ir.cpp
index a147339b1a..0810a3a011 100644
--- a/ir.cpp
+++ b/ir.cpp
@@ -224,7 +224,6 @@ ir_constant::ir_constant(bool b)
ir_dereference_variable::ir_dereference_variable(ir_variable *var)
- : ir_dereference(ir_reference_variable)
{
this->var = var;
this->type = (var != NULL) ? var->type : glsl_type::error_type;
@@ -233,7 +232,6 @@ ir_dereference_variable::ir_dereference_variable(ir_variable *var)
ir_dereference_array::ir_dereference_array(ir_rvalue *value,
ir_rvalue *array_index)
- : ir_dereference(ir_reference_array)
{
this->array_index = array_index;
this->set_array(value);
@@ -242,7 +240,6 @@ ir_dereference_array::ir_dereference_array(ir_rvalue *value,
ir_dereference_array::ir_dereference_array(ir_variable *var,
ir_rvalue *array_index)
- : ir_dereference(ir_reference_array)
{
this->array_index = array_index;
this->set_array(new ir_dereference_variable(var));
@@ -271,7 +268,6 @@ ir_dereference_array::set_array(ir_rvalue *value)
ir_dereference_record::ir_dereference_record(ir_rvalue *value,
const char *field)
- : ir_dereference(ir_reference_record)
{
this->record = value;
this->field = field;
@@ -282,7 +278,6 @@ ir_dereference_record::ir_dereference_record(ir_rvalue *value,
ir_dereference_record::ir_dereference_record(ir_variable *var,
const char *field)
- : ir_dereference(ir_reference_record)
{
this->record = new ir_dereference_variable(var);
this->field = field;
diff --git a/ir.h b/ir.h
index 306ec8c162..bbec6ce5be 100644
--- a/ir.h
+++ b/ir.h
@@ -814,19 +814,6 @@ public:
* Get the variable that is ultimately referenced by an r-value
*/
virtual ir_variable *variable_referenced() = 0;
-
- enum ir_deref_mode {
- ir_reference_variable,
- ir_reference_array,
- ir_reference_record
- } mode;
-
-protected:
- ir_dereference(ir_deref_mode mode)
- : mode(mode)
- {
- /* empty */
- }
};