[Mesa-dev] [PATCH] glsl: Remove unused member variable
Tapani Pälli
tapani.palli at intel.com
Tue Nov 27 09:37:59 UTC 2018
Seems already unused at the commit that introduced it ..
Reviewed-by: Tapani Pälli <tapani.palli at intel.com>
On 11/27/18 10:10 AM, Matt Turner wrote:
> ---
> src/compiler/glsl/glsl_to_nir.cpp | 4 ----
> 1 file changed, 4 deletions(-)
>
> diff --git a/src/compiler/glsl/glsl_to_nir.cpp b/src/compiler/glsl/glsl_to_nir.cpp
> index dc6ffa3599d..61b544fd6d3 100644
> --- a/src/compiler/glsl/glsl_to_nir.cpp
> +++ b/src/compiler/glsl/glsl_to_nir.cpp
> @@ -96,8 +96,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;
>
> @@ -179,7 +177,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));
> }
>
> @@ -453,7 +450,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
>
More information about the mesa-dev
mailing list