From 156bad78f27813934d897518f0d6ea8748be9e47 Mon Sep 17 00:00:00 2001 From: Vito Caputo Date: Fri, 10 Jun 2022 08:46:27 -0700 Subject: til_threads: remove vestigial n_fragments counter This is leftover from 4e5286 which was mostly removed when frame zeroing was simplified, but for some reason this was missed. Just get rid of the count as it's not used. --- src/til_threads.c | 3 --- 1 file changed, 3 deletions(-) (limited to 'src/til_threads.c') diff --git a/src/til_threads.c b/src/til_threads.c index a4d1709..9551814 100644 --- a/src/til_threads.c +++ b/src/til_threads.c @@ -45,8 +45,6 @@ static void * thread_func(void *_thread) pthread_setcanceltype(PTHREAD_CANCEL_ASYNCHRONOUS, NULL); for (;;) { - unsigned n_fragments = 0; - /* wait for a new frame */ pthread_mutex_lock(&threads->frame_mutex); pthread_cleanup_push((void (*)(void *))pthread_mutex_unlock, &threads->frame_mutex); @@ -66,7 +64,6 @@ static void * thread_func(void *_thread) break; threads->render_fragment_func(threads->context, threads->ticks, thread->id, &fragment); - n_fragments++; } /* report as idle */ -- cgit v1.2.3