257a3a8
--- amanda/trunk/common-src/glib-util.c	2012/03/09 21:13:00	4591
257a3a8
+++ amanda/trunk/common-src/glib-util.c	2012/03/10 13:43:44	4592
257a3a8
@@ -120,15 +120,6 @@
257a3a8
 }
257a3a8
 #endif
257a3a8
 
257a3a8
-void g_queue_free_full(GQueue * queue) {
257a3a8
-    while (!g_queue_is_empty(queue)) {
257a3a8
-        gpointer data;
257a3a8
-        data = g_queue_pop_head(queue);
257a3a8
-        amfree(data);
257a3a8
-    }
257a3a8
-    g_queue_free(queue);
257a3a8
-}
257a3a8
-
257a3a8
 void g_ptr_array_free_full(GPtrArray * array) {
257a3a8
     size_t i;
257a3a8
 
257a3a8
--- amanda/trunk/common-src/glib-util.h	2012/03/09 21:13:00	4591
257a3a8
+++ amanda/trunk/common-src/glib-util.h	2012/03/10 13:43:44	4592
257a3a8
@@ -72,7 +72,6 @@
257a3a8
 
257a3a8
 /* These functions all take a GLib container, and call free() on all the
257a3a8
  * pointers in the container before free()ing the container itself. */
257a3a8
-void g_queue_free_full(GQueue * queue);
257a3a8
 void g_ptr_array_free_full(GPtrArray * array);
257a3a8
 
257a3a8
 /* g_value_compare() does what you expect. It returns TRUE if and
257a3a8
257a3a8
--- amanda/trunk/common-src/glib-util.c	2012/03/10 13:43:52	4593
257a3a8
+++ amanda/trunk/common-src/glib-util.c	2012/03/11 16:27:35	4594
257a3a8
@@ -42,7 +42,9 @@
257a3a8
      * is initialized) */
257a3a8
 #ifdef HAVE_LIBCURL
257a3a8
 # ifdef G_THREADS_ENABLED
257a3a8
+#  if (GLIB_MAJOR_VERSION < 2 || (GLIB_MAJOR_VERSION == 2 && GLIB_MINOR_VERSION < 31))
257a3a8
     g_assert(!g_thread_supported()); /* assert threads aren't initialized yet */
257a3a8
+#  endif
257a3a8
 # endif
257a3a8
     g_assert(curl_global_init(CURL_GLOBAL_ALL) == 0);
257a3a8
 #endif
257a3a8