[gnome-panel] libpanel-util: remove panel_cleanup_unregister



commit a2aa03e293c9a961b654bdd709107a5bf61973f8
Author: Alberts Muktupāvels <alberts muktupavels gmail com>
Date:   Sun Mar 8 02:05:35 2020 +0200

    libpanel-util: remove panel_cleanup_unregister

 gnome-panel/libpanel-util/panel-cleanup.c | 27 ---------------------------
 gnome-panel/libpanel-util/panel-cleanup.h |  2 --
 2 files changed, 29 deletions(-)
---
diff --git a/gnome-panel/libpanel-util/panel-cleanup.c b/gnome-panel/libpanel-util/panel-cleanup.c
index 01f0ae968..9ff00cf05 100644
--- a/gnome-panel/libpanel-util/panel-cleanup.c
+++ b/gnome-panel/libpanel-util/panel-cleanup.c
@@ -67,33 +67,6 @@ panel_cleanup_register (PanelCleanFunc func,
        cleaner = g_slist_prepend (cleaner, clean);
 }
 
-void
-panel_cleanup_unregister (PanelCleanFunc func,
-                         gpointer       data)
-{
-       GSList *l, *next;
-       PanelClean *clean;
-
-       g_return_if_fail (func != NULL);
-
-       if (!cleaner)
-               return;
-
-       l = cleaner;
-
-       do {
-               next = l->next;
-
-               clean = l->data;
-               if (clean->func == func && clean->data == data) {
-                       g_slice_free (PanelClean, clean);
-                       cleaner = g_slist_delete_link (cleaner, l);
-               }
-
-               l = next;
-       } while (l);
-}
-
 void
 panel_cleanup_unref_and_nullify (gpointer data)
 {
diff --git a/gnome-panel/libpanel-util/panel-cleanup.h b/gnome-panel/libpanel-util/panel-cleanup.h
index 04b011542..38138bba6 100644
--- a/gnome-panel/libpanel-util/panel-cleanup.h
+++ b/gnome-panel/libpanel-util/panel-cleanup.h
@@ -37,8 +37,6 @@ void panel_cleanup_do         (void);
 
 void panel_cleanup_register   (PanelCleanFunc func,
                               gpointer       data);
-void panel_cleanup_unregister (PanelCleanFunc func,
-                              gpointer       data);
 
 G_END_DECLS
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]