draw: remove unused 'start' variable in draw_stats_clipper_primitives()
authorBrian Paul <brianp@vmware.com>
Fri, 11 Apr 2014 17:46:55 +0000 (11:46 -0600)
committerBrian Paul <brianp@vmware.com>
Fri, 11 Apr 2014 19:54:17 +0000 (13:54 -0600)
It was computed, but never actually used.

Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
src/gallium/auxiliary/draw/draw_context.c

index da1e958900cd74b3fa1acd0bd31923fff3114f07..0a678790f134d2af7d931bde6a339283086657a5 100644 (file)
@@ -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]);