[Mesa-dev] [PATCH 06/13] mesa: Remove unused functions from perfomance query code.
Petri Latvala
petri.latvala at intel.com
Mon Jun 16 00:38:04 PDT 2014
On 06/15/2014 08:17 PM, Matt Turner wrote:
> Perhaps useful for debugging? Never used otherwise. Added by commit
> 8cf5bdad.
> ---
> src/mesa/main/performance_monitor.c | 13 -------------
> 1 file changed, 13 deletions(-)
>
> diff --git a/src/mesa/main/performance_monitor.c b/src/mesa/main/performance_monitor.c
> index 9d1a6b4..c26eda4 100644
> --- a/src/mesa/main/performance_monitor.c
> +++ b/src/mesa/main/performance_monitor.c
> @@ -164,19 +164,6 @@ counterid_to_index(GLuint counterid)
> return counterid - 1;
> }
>
> -static inline GLuint
> -index_to_counterid(GLuint index)
> -{
> - return index + 1;
> -}
> -
> -static inline bool
> -counterid_valid(const struct gl_perf_monitor_group *group_obj,
> - GLuint counterid)
> -{
> - return get_counter(group_obj, counterid_to_index(counterid)) != NULL;
> -}
> -
> /*****************************************************************************/
>
> void GLAPIENTRY
Oh, bugger. Those functions were used at some point, but their lack of
use after refactoring never came up.
Reviewed-by: Petri Latvala <petri.latvala at intel.com>
More information about the mesa-dev
mailing list