X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=common-src%2Fglib-util.c;h=99f55f7aa8a91824fbb2d9202dc4fcc2fa1b9f3e;hb=3c4bb2012986d596b3ee0e65fac4b2c5b7b01540;hp=91985e500f4efa670c7ee69116af001ae4761a65;hpb=cb38d19aa8dc2c5d380ab2d7ad9724a5d99eee5d;p=debian%2Famanda diff --git a/common-src/glib-util.c b/common-src/glib-util.c index 91985e5..99f55f7 100644 --- a/common-src/glib-util.c +++ b/common-src/glib-util.c @@ -38,12 +38,8 @@ glib_init(void) { if (did_glib_init) return; did_glib_init = TRUE; - /* set up libcurl (this must happen before threading - * is initialized) */ + /* set up libcurl */ #ifdef HAVE_LIBCURL -# ifdef G_THREADS_ENABLED - g_assert(!g_thread_supported()); /* assert threads aren't initialized yet */ -# endif g_assert(curl_global_init(CURL_GLOBAL_ALL) == 0); #endif @@ -64,12 +60,6 @@ glib_init(void) { /* Initialize glib's type system. On glib >= 2.24, this will initialize * threads, so it must be done after curl is initialized. */ g_type_init(); - - /* And set up glib's threads */ -#if defined(G_THREADS_ENABLED) && !defined(G_THREADS_IMPL_NONE) - if (!g_thread_supported()) - g_thread_init(NULL); -#endif } typedef enum { @@ -120,15 +110,6 @@ void slist_free_full(GSList * list, GDestroyNotify free_fn) { } #endif -void g_queue_free_full(GQueue * queue) { - while (!g_queue_is_empty(queue)) { - gpointer data; - data = g_queue_pop_head(queue); - amfree(data); - } - g_queue_free(queue); -} - void g_ptr_array_free_full(GPtrArray * array) { size_t i;