glsl: Remove unused member variable
authorMatt Turner <mattst88@gmail.com>
Tue, 30 Oct 2018 12:36:02 +0000 (05:36 -0700)
committerMatt Turner <mattst88@gmail.com>
Wed, 28 Nov 2018 06:29:53 +0000 (22:29 -0800)
Reviewed-by: Tapani Pälli <tapani.palli@intel.com>
src/compiler/glsl/glsl_to_nir.cpp

index 9f73b721e395a440b089c684dbda220a3ff8c508..55628dd2ccdc7b30618ae459e93a3a5ca0b443d6 100644 (file)
@@ -97,8 +97,6 @@ private:
    /* most recent deref instruction created */
    nir_deref_instr *deref;
 
-   nir_variable *var; /* variable created by ir_variable visitor */
-
    /* whether the IR we're operating on is per-function or global */
    bool is_global;
 
@@ -180,7 +178,6 @@ nir_visitor::nir_visitor(nir_shader *shader)
                                                   _mesa_key_pointer_equal);
    this->result = NULL;
    this->impl = NULL;
-   this->var = NULL;
    memset(&this->b, 0, sizeof(this->b));
 }
 
@@ -454,7 +451,6 @@ nir_visitor::visit(ir_variable *ir)
       nir_shader_add_variable(shader, var);
 
    _mesa_hash_table_insert(var_table, ir, var);
-   this->var = var;
 }
 
 ir_visitor_status