mesa: remove unused parameter/member of add_uniform_to_shader
authorNicolai Hähnle <nicolai.haehnle@amd.com>
Sat, 24 Jun 2017 10:26:46 +0000 (12:26 +0200)
committerNicolai Hähnle <nicolai.haehnle@amd.com>
Mon, 3 Jul 2017 11:57:01 +0000 (13:57 +0200)
Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
src/mesa/program/ir_to_mesa.cpp

index d70494c2f957b0be67b2ae59358d57cbdb4a952c..93c6946fd63ff73e072283372fe45a007e74a9f6 100644 (file)
@@ -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();