From 01d2bd34f47fc79579808f20b21ad46d43fe8fc2 Mon Sep 17 00:00:00 2001 From: Kenneth Graunke Date: Wed, 10 Oct 2012 17:07:53 -0700 Subject: mesa: Remove dead _mesa_num_parameters_of_type() function. Reviewed-by: Brian Paul Reviewed-by: Eric Anholt --- src/mesa/program/prog_parameter.c | 18 ------------------ 1 file changed, 18 deletions(-) (limited to 'src/mesa/program/prog_parameter.c') diff --git a/src/mesa/program/prog_parameter.c b/src/mesa/program/prog_parameter.c index 9fa67b8baf0..8713d57b59f 100644 --- a/src/mesa/program/prog_parameter.c +++ b/src/mesa/program/prog_parameter.c @@ -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; -} -- cgit v1.2.3