From: Brian Paul Date: Fri, 11 Apr 2014 17:46:55 +0000 (-0600) Subject: draw: remove unused 'start' variable in draw_stats_clipper_primitives() X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=e5f306e3ffe99ab497fe48dfb3fda333303147e7;p=mesa.git draw: remove unused 'start' variable in draw_stats_clipper_primitives() It was computed, but never actually used. Reviewed-by: Ian Romanick --- diff --git a/src/gallium/auxiliary/draw/draw_context.c b/src/gallium/auxiliary/draw/draw_context.c index da1e958900c..0a678790f13 100644 --- a/src/gallium/auxiliary/draw/draw_context.c +++ b/src/gallium/auxiliary/draw/draw_context.c @@ -1043,11 +1043,8 @@ draw_stats_clipper_primitives(struct draw_context *draw, const struct draw_prim_info *prim_info) { if (draw->collect_statistics) { - unsigned start, i; - for (start = i = 0; - i < prim_info->primitive_count; - start += prim_info->primitive_lengths[i], i++) - { + unsigned i; + for (i = 0; i < prim_info->primitive_count; i++) { draw->statistics.c_invocations += u_decomposed_prims_for_vertices(prim_info->prim, prim_info->primitive_lengths[i]);