[gnome-panel] applet: remove unused functions



commit c3f5c92d5f9fc8cd2ff7d27cbb051ec9bd49efaf
Author: Alberts Muktupāvels <alberts muktupavels gmail com>
Date:   Mon Sep 17 18:04:28 2018 +0300

    applet: remove unused functions

 gnome-panel/applet.c | 61 ----------------------------------------------------
 gnome-panel/applet.h |  7 ------
 2 files changed, 68 deletions(-)
---
diff --git a/gnome-panel/applet.c b/gnome-panel/applet.c
index 5ca8aac17..5dd004e22 100644
--- a/gnome-panel/applet.c
+++ b/gnome-panel/applet.c
@@ -812,65 +812,12 @@ panel_applet_get_id (AppletInfo *info)
        return info->id;
 }
 
-const char *
-panel_applet_get_id_by_widget (GtkWidget *applet_widget)
-{
-       GSList *l;
-
-       if (!applet_widget)
-               return NULL;
-
-       for (l = registered_applets; l; l = l->next) {
-               AppletInfo *info = l->data;
-
-               if (info->widget == applet_widget)
-                       return info->id;
-       }
-
-       return NULL;
-}
-
-AppletInfo *
-panel_applet_get_by_id (const char *id)
-{
-       GSList *l;
-
-       for (l = registered_applets; l; l = l->next) {
-               AppletInfo *info = l->data;
-
-               if (!strcmp (info->id, id))
-                       return info;
-       }
-
-       return NULL;
-}
-
 GSList *
 panel_applet_list_applets (void)
 {
        return registered_applets;
 }
 
-AppletInfo *
-panel_applet_get_by_type (PanelObjectType object_type, GdkScreen *screen)
-{
-       GSList *l;
-
-       for (l = registered_applets; l; l = l->next) {
-               AppletInfo *info = l->data;
-
-               if (info->type == object_type) {
-                       if (screen) {
-                               if (screen == gtk_widget_get_screen (info->widget))
-                                       return info;
-                       } else
-                               return info;
-               }
-       }
-
-       return NULL;
-}
-
 gboolean
 panel_applet_activate_main_menu (guint32 activate_time)
 {
@@ -971,14 +918,6 @@ panel_applet_register (GtkWidget       *applet,
        return info;
 }
 
-GSettings *
-panel_applet_get_settings (AppletInfo *applet)
-{
-       g_return_val_if_fail (applet != NULL, NULL);
-
-       return applet->settings;
-}
-
 gboolean
 panel_applet_can_freely_move (AppletInfo *applet)
 {
diff --git a/gnome-panel/applet.h b/gnome-panel/applet.h
index 813e4f91d..3edfa56e8 100644
--- a/gnome-panel/applet.h
+++ b/gnome-panel/applet.h
@@ -9,7 +9,6 @@
 
 G_BEGIN_DECLS
 
-
 #define APPLET_EVENT_MASK (GDK_BUTTON_PRESS_MASK |             \
                           GDK_BUTTON_RELEASE_MASK |            \
                           GDK_POINTER_MOTION_MASK |            \
@@ -53,9 +52,6 @@ AppletInfo *panel_applet_register    (GtkWidget       *applet,
                                      GDestroyNotify   data_destroy);
 
 const char *panel_applet_get_id           (AppletInfo      *info);
-const char *panel_applet_get_id_by_widget (GtkWidget       *widget);
-AppletInfo *panel_applet_get_by_id        (const char      *id);
-AppletInfo *panel_applet_get_by_type      (PanelObjectType  object_type, GdkScreen *screen);
 
 gboolean    panel_applet_activate_main_menu (guint32 activate_time);
 
@@ -71,13 +67,10 @@ void            panel_applet_add_callback    (AppletInfo          *info,
 AppletUserMenu *panel_applet_get_callback    (GList       *user_menu,
                                              const gchar *name);
 
-
 void        panel_applet_save_position           (AppletInfo *applet_info,
                                                  const char *id,
                                                  gboolean    immediate);
 
-GSettings  *panel_applet_get_settings    (AppletInfo *applet);
-
 /* True if all the keys relevant to moving are writable
    (position, toplevel_id, panel_right_stick) */
 gboolean    panel_applet_can_freely_move (AppletInfo *applet);


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