mesa: Remove dead _mesa_num_parameters_of_type() function.
authorKenneth Graunke <kenneth@whitecape.org>
Thu, 11 Oct 2012 00:07:53 +0000 (17:07 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Tue, 16 Oct 2012 18:35:24 +0000 (11:35 -0700)
Reviewed-by: Brian Paul <brianp@vmware.com>
Reviewed-by: Eric Anholt <eric@anholt.net>
src/mesa/program/prog_parameter.c
src/mesa/program/prog_parameter.h

index 9fa67b8baf047e990ec63522456c013fbaf975a6..8713d57b59fb76e740053c00e1d3910cbd1aa215 100644 (file)
@@ -567,21 +567,3 @@ _mesa_combine_parameter_lists(const struct gl_program_parameter_list *listA,
    }
    return list;
 }
-
-
-/**
- * Count the number of parameters in the last that match the given type.
- */
-GLuint
-_mesa_num_parameters_of_type(const struct gl_program_parameter_list *list,
-                             gl_register_file type)
-{
-   GLuint i, count = 0;
-   if (list) {
-      for (i = 0; i < list->NumParameters; i++) {
-         if (list->Parameters[i].Type == type)
-            count++;
-      }
-   }
-   return count;
-}
index 01b1519eab5802383fbfc8d1351b8bf5dda4253a..7b6b4b80e7cd9d028f7b967b857db77c2eec1af2 100644 (file)
@@ -151,11 +151,6 @@ _mesa_lookup_parameter_constant(const struct gl_program_parameter_list *list,
                                 const gl_constant_value v[], GLuint vSize,
                                 GLint *posOut, GLuint *swizzleOut);
 
-extern GLuint
-_mesa_num_parameters_of_type(const struct gl_program_parameter_list *list,
-                             gl_register_file type);
-
-
 #ifdef __cplusplus
 }
 #endif