glsl: Remove unused prog parameter from tfeedback_decl::init
authorIan Romanick <ian.d.romanick@intel.com>
Fri, 30 Aug 2013 22:48:26 +0000 (15:48 -0700)
committerIan Romanick <ian.d.romanick@intel.com>
Wed, 4 Sep 2013 15:13:11 +0000 (08:13 -0700)
It looks like commit 53febac removed the last user of that parameter.

Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Paul Berry <stereotype441@gmail.com>
src/glsl/link_varyings.cpp
src/glsl/link_varyings.h

index 47d9316cf04f491ae4c582340a25ccc7dca2bda1..081a51da54fed1408f13225f28ff3038f2c59ece 100644 (file)
@@ -227,8 +227,8 @@ cross_validate_outputs_to_inputs(struct gl_shader_program *prog,
  * will fail to find any matching variable.
  */
 void
-tfeedback_decl::init(struct gl_context *ctx, struct gl_shader_program *prog,
-                     const void *mem_ctx, const char *input)
+tfeedback_decl::init(struct gl_context *ctx, const void *mem_ctx,
+                     const char *input)
 {
    /* We don't have to be pedantic about what is a valid GLSL variable name,
     * because any variable with an invalid name can't exist in the IR anyway.
@@ -498,7 +498,7 @@ parse_tfeedback_decls(struct gl_context *ctx, struct gl_shader_program *prog,
                       char **varying_names, tfeedback_decl *decls)
 {
    for (unsigned i = 0; i < num_names; ++i) {
-      decls[i].init(ctx, prog, mem_ctx, varying_names[i]);
+      decls[i].init(ctx, mem_ctx, varying_names[i]);
 
       if (!decls[i].is_varying())
          continue;
index 302ab5c265833155d049bc554cf84029ea309fbd..6264ef05b2a00fec2079869964c32f7d43e3b25b 100644 (file)
@@ -91,8 +91,7 @@ struct tfeedback_candidate
 class tfeedback_decl
 {
 public:
-   void init(struct gl_context *ctx, struct gl_shader_program *prog,
-             const void *mem_ctx, const char *input);
+   void init(struct gl_context *ctx, const void *mem_ctx, const char *input);
    static bool is_same(const tfeedback_decl &x, const tfeedback_decl &y);
    bool assign_location(struct gl_context *ctx,
                         struct gl_shader_program *prog);