From: Nicolai Hähnle Date: Sat, 24 Jun 2017 10:26:46 +0000 (+0200) Subject: mesa: remove unused parameter/member of add_uniform_to_shader X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=7c5b204e38d8cae70f5bf26e7223da5bc448bb5c;p=mesa.git mesa: remove unused parameter/member of add_uniform_to_shader Reviewed-by: Timothy Arceri Reviewed-by: Ian Romanick --- diff --git a/src/mesa/program/ir_to_mesa.cpp b/src/mesa/program/ir_to_mesa.cpp index d70494c2f95..93c6946fd63 100644 --- a/src/mesa/program/ir_to_mesa.cpp +++ b/src/mesa/program/ir_to_mesa.cpp @@ -2409,10 +2409,8 @@ namespace { class add_uniform_to_shader : public program_resource_visitor { public: add_uniform_to_shader(struct gl_shader_program *shader_program, - struct gl_program_parameter_list *params, - gl_shader_stage shader_type) - : shader_program(shader_program), params(params), idx(-1), - shader_type(shader_type) + struct gl_program_parameter_list *params) + : shader_program(shader_program), params(params), idx(-1) { /* empty */ } @@ -2435,7 +2433,6 @@ private: struct gl_program_parameter_list *params; int idx; ir_variable *var; - gl_shader_stage shader_type; }; } /* anonymous namespace */ @@ -2483,7 +2480,7 @@ _mesa_generate_parameters_list_for_uniforms(struct gl_shader_program struct gl_program_parameter_list *params) { - add_uniform_to_shader add(shader_program, params, sh->Stage); + add_uniform_to_shader add(shader_program, params); foreach_in_list(ir_instruction, node, sh->ir) { ir_variable *var = node->as_variable();