From f2adb254f3a64dfc0f938d4c37ce837f3cf4854b Mon Sep 17 00:00:00 2001 From: Bastien Nocera Date: Fri, 13 Sep 2019 10:57:45 +0200 Subject: [PATCH] Remove call to g_thread_supported() Threading is always supported since glib 2.32. See: https://developer.gnome.org/glib/2.34/glib-Deprecated-Thread-APIs.html#g-thread-init --- lib/rb-util.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/lib/rb-util.c b/lib/rb-util.c index 2cbd5e4e2..cc648f7de 100644 --- a/lib/rb-util.c +++ b/lib/rb-util.c @@ -302,11 +302,7 @@ rb_safe_strcmp (const char *a, gboolean rb_is_main_thread (void) { - if (g_thread_supported()) { - return GPOINTER_TO_UINT(g_private_get (&private_is_primary_thread)) == 1; - } else { - return TRUE; - } + return GPOINTER_TO_UINT(g_private_get (&private_is_primary_thread)) == 1; } static gboolean