From: Ian Romanick Date: Wed, 26 May 2010 18:43:40 +0000 (-0700) Subject: ir_dereference::mode is no longer used, kill with fire X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=fd55da21471fbab7e78c12a31b4eba0d33481735;p=mesa.git ir_dereference::mode is no longer used, kill with fire --- diff --git a/ir.cpp b/ir.cpp index a147339b1a7..0810a3a0114 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 306ec8c162b..bbec6ce5bed 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 */ - } };