ir_dereference::mode is no longer used, kill with fire
authorIan Romanick <ian.d.romanick@intel.com>
Wed, 26 May 2010 18:43:40 +0000 (11:43 -0700)
committerIan Romanick <ian.d.romanick@intel.com>
Wed, 26 May 2010 22:23:25 +0000 (15:23 -0700)
ir.cpp
ir.h

diff --git a/ir.cpp b/ir.cpp
index a147339b1a7cb0411c42bad4af8190e0e5d2dbb3..0810a3a0114aa2d34813f3eee34f1c740242aa6f 100644 (file)
--- 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 306ec8c162b109907cc830e7ebed4a82c41481b1..bbec6ce5bedfa2864758a2dd8b5bd6fb0153bc55 100644 (file)
--- 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 */
-   }
 };