72b0173
diff -up mc-4.8.24/lib/glibcompat.c.gcc10 mc-4.8.24/lib/glibcompat.c
72b0173
--- mc-4.8.24/lib/glibcompat.c.gcc10	2020-01-31 14:25:41.997058611 +0100
72b0173
+++ mc-4.8.24/lib/glibcompat.c	2020-01-31 14:26:12.750509713 +0100
72b0173
@@ -91,71 +91,6 @@ g_list_free_full (GList * list, GDestroy
72b0173
 
72b0173
 #endif /* ! GLIB_CHECK_VERSION (2, 28, 0) */
72b0173
 
72b0173
-#if ! GLIB_CHECK_VERSION (2, 64, 0)
72b0173
-/**
72b0173
- * g_clear_slist: (skip)
72b0173
- * @slist_ptr: (not nullable): a #GSList return location
72b0173
- * @destroy: (nullable): the function to pass to g_slist_free_full() or NULL to not free elements
72b0173
- *
72b0173
- * Clears a pointer to a #GSList, freeing it and, optionally, freeing its elements using @destroy.
72b0173
- *
72b0173
- * @slist_ptr must be a valid pointer. If @slist_ptr points to a null #GSList, this does nothing.
72b0173
- *
72b0173
- * Since: 2.64
72b0173
- */
72b0173
-void
72b0173
-g_clear_slist (GSList ** slist_ptr, GDestroyNotify destroy)
72b0173
-{
72b0173
-    GSList *slist;
72b0173
-
72b0173
-    slist = *slist_ptr;
72b0173
-
72b0173
-    if (slist != NULL)
72b0173
-    {
72b0173
-        *slist_ptr = NULL;
72b0173
-
72b0173
-        if (destroy != NULL)
72b0173
-            g_slist_free_full (slist, destroy);
72b0173
-        else
72b0173
-            g_slist_free (slist);
72b0173
-    }
72b0173
-}
72b0173
-
72b0173
-/* --------------------------------------------------------------------------------------------- */
72b0173
-
72b0173
-/**
72b0173
- * g_clear_list:
72b0173
- * @list_ptr: (not nullable): a #GList return location
72b0173
- * @destroy: (nullable): the function to pass to g_list_free_full() or NULL to not free elements
72b0173
- *
72b0173
- * Clears a pointer to a #GList, freeing it and, optionally, freeing its elements using @destroy.
72b0173
- *
72b0173
- * @list_ptr must be a valid pointer. If @list_ptr points to a null #GList, this does nothing.
72b0173
- *
72b0173
- * Since: 2.64
72b0173
- */
72b0173
-void
72b0173
-g_clear_list (GList ** list_ptr, GDestroyNotify destroy)
72b0173
-{
72b0173
-    GList *list;
72b0173
-
72b0173
-    list = *list_ptr;
72b0173
-
72b0173
-    if (list != NULL)
72b0173
-    {
72b0173
-        *list_ptr = NULL;
72b0173
-
72b0173
-        if (destroy != NULL)
72b0173
-            g_list_free_full (list, destroy);
72b0173
-        else
72b0173
-            g_list_free (list);
72b0173
-    }
72b0173
-}
72b0173
-
72b0173
-/* --------------------------------------------------------------------------------------------- */
72b0173
-
72b0173
-#endif /* ! GLIB_CHECK_VERSION (2, 64, 0) */
72b0173
-
72b0173
 #if ! GLIB_CHECK_VERSION (2, 32, 0)
72b0173
 /**
72b0173
  * g_queue_free_full:
72b0173
diff -up mc-4.8.24/lib/glibcompat.h.gcc10 mc-4.8.24/lib/glibcompat.h
72b0173
--- mc-4.8.24/lib/glibcompat.h.gcc10	2020-01-31 14:25:46.096118737 +0100
72b0173
+++ mc-4.8.24/lib/glibcompat.h	2020-01-31 14:25:54.285238859 +0100
72b0173
@@ -16,11 +16,6 @@ void g_slist_free_full (GSList * list, G
72b0173
 void g_list_free_full (GList * list, GDestroyNotify free_func);
72b0173
 #endif /* ! GLIB_CHECK_VERSION (2, 28, 0) */
72b0173
 
72b0173
-#if ! GLIB_CHECK_VERSION (2, 64, 0)
72b0173
-void g_clear_slist (GSList ** slist_ptr, GDestroyNotify destroy);
72b0173
-void g_clear_list (GList ** list_ptr, GDestroyNotify destroy);
72b0173
-#endif /* ! GLIB_CHECK_VERSION (2, 64, 0) */
72b0173
-
72b0173
 #if ! GLIB_CHECK_VERSION (2, 32, 0)
72b0173
 void g_queue_free_full (GQueue * queue, GDestroyNotify free_func);
72b0173
 #endif /* ! GLIB_CHECK_VERSION (2, 32, 0) */