Skip to content

Commit

Permalink
Remove call to g_thread_supported()
Browse files Browse the repository at this point in the history
  • Loading branch information
hadess committed Sep 13, 2019
1 parent 1b50bba commit f2adb25
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions lib/rb-util.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit f2adb25

Please sign in to comment.