egg: Don't use deprecated g_thread_supported() function
authorStef Walter <stefw@gnome.org>
Wed, 13 Feb 2013 16:18:17 +0000 (17:18 +0100)
committerStef Walter <stefw@gnome.org>
Wed, 13 Feb 2013 16:18:17 +0000 (17:18 +0100)
Nowadays glib always supports threading.

egg/egg-libgcrypt.c

index d8eb0d2..22f005d 100644 (file)
@@ -102,8 +102,7 @@ egg_libgcrypt_initialize (void)
                
                /* Only initialize libgcrypt if it hasn't already been initialized */
                if (!gcry_control (GCRYCTL_INITIALIZATION_FINISHED_P)) {
-                       if (g_thread_supported())
-                               gcry_control (GCRYCTL_SET_THREAD_CBS, &glib_thread_cbs);
+                       gcry_control (GCRYCTL_SET_THREAD_CBS, &glib_thread_cbs);
                        gcry_check_version (LIBGCRYPT_VERSION);
                        gcry_set_log_handler (log_handler, NULL);
                        gcry_set_outofcore_handler (no_mem_handler, NULL);