[gnome-panel] libpanel-util: remove panel_g_list_insert_after



commit 957262f0eeb9d8171974e6461ce0fffe30773e44
Author: Alberts Muktupāvels <alberts muktupavels gmail com>
Date:   Sat Mar 7 20:58:29 2020 +0200

    libpanel-util: remove panel_g_list_insert_after

 gnome-panel/libpanel-util/panel-list.c | 28 ----------------------------
 gnome-panel/libpanel-util/panel-list.h |  3 ---
 2 files changed, 31 deletions(-)
---
diff --git a/gnome-panel/libpanel-util/panel-list.c b/gnome-panel/libpanel-util/panel-list.c
index 7bb32ab99..b0cba734e 100644
--- a/gnome-panel/libpanel-util/panel-list.c
+++ b/gnome-panel/libpanel-util/panel-list.c
@@ -62,34 +62,6 @@ panel_g_list_insert_before (GList *list,
        }
 }
 
-GList *
-panel_g_list_insert_after (GList *list,
-                          GList *sibling,
-                          GList *link)
-{
-       if (!list) {
-               g_return_val_if_fail (sibling == NULL, link);
-               return link;
-       } else if (sibling) {
-               if (sibling->next) {
-                       link->next = sibling->next;
-                       link->next->prev = link;
-                       link->prev = sibling;
-                       sibling->next = link;
-                       return list;
-               } else {
-                       sibling->next = link;
-                       link->prev = sibling;
-                       return list;
-               }
-                       
-       } else {
-               link->next = list;
-               list->prev = link;
-               return link;
-       }
-}
-
 GList *
 panel_g_list_swap_next (GList *list,
                        GList *dl)
diff --git a/gnome-panel/libpanel-util/panel-list.h b/gnome-panel/libpanel-util/panel-list.h
index 471742130..f81df752e 100644
--- a/gnome-panel/libpanel-util/panel-list.h
+++ b/gnome-panel/libpanel-util/panel-list.h
@@ -30,9 +30,6 @@ G_BEGIN_DECLS
 GList *panel_g_list_insert_before (GList        *list,
                                   GList        *sibling,
                                   GList        *link);
-GList *panel_g_list_insert_after  (GList        *list,
-                                  GList        *sibling,
-                                  GList        *link);
 GList *panel_g_list_swap_next     (GList        *list,
                                   GList        *dl);
 GList *panel_g_list_swap_prev     (GList        *list,


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