From f0dbf6fe7c740f6119a64c74fd327cb05d1a93d5 Mon Sep 17 00:00:00 2001 From: Philip Withnall Date: Fri, 3 Nov 2023 11:38:41 +0000 Subject: [PATCH] tests: Remove dead code from thread-pool-slow This variable was never modified. Signed-off-by: Philip Withnall --- glib/tests/thread-pool-slow.c | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/glib/tests/thread-pool-slow.c b/glib/tests/thread-pool-slow.c index 770bd9198..7f1ca27a0 100644 --- a/glib/tests/thread-pool-slow.c +++ b/glib/tests/thread-pool-slow.c @@ -20,10 +20,6 @@ G_LOCK_DEFINE_STATIC (last_thread); static guint last_thread_id = 0; -G_LOCK_DEFINE_STATIC (thread_counter_sort); - -static gulong sort_thread_counter = 0; - static GThreadPool *idle_pool = NULL; static GMainLoop *main_loop = NULL; @@ -408,14 +404,6 @@ test_check_start_and_stop (gpointer user_data) G_UNLOCK (thread_counter_pools); } - if (test_number == 4 || test_number == 5) { - G_LOCK (thread_counter_sort); - quit &= sort_thread_counter <= 0; - g_test_message ("***** POOL SORT THREAD COUNT:%ld", - sort_thread_counter); - G_UNLOCK (thread_counter_sort); - } - if (test_number == 8) { guint idle;