From 7c5b204e38d8cae70f5bf26e7223da5bc448bb5c Mon Sep 17 00:00:00 2001 From: =?utf8?q?Nicolai=20H=C3=A4hnle?= Date: Sat, 24 Jun 2017 12:26:46 +0200 Subject: [PATCH] mesa: remove unused parameter/member of add_uniform_to_shader Reviewed-by: Timothy Arceri Reviewed-by: Ian Romanick --- src/mesa/program/ir_to_mesa.cpp | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) 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(); -- 2.30.2