[gnome-settings-daemon] power: Remove unused gpm_device_kind_to_icon()



commit 7de81320502b7e7f9252222ccc0e27f7ced2a7b9
Author: Bastien Nocera <hadess hadess net>
Date:   Thu Oct 10 12:34:20 2013 +0200

    power: Remove unused gpm_device_kind_to_icon()

 plugins/power/gpm-common.c |   47 --------------------------------------------
 plugins/power/gpm-common.h |    1 -
 2 files changed, 0 insertions(+), 48 deletions(-)
---
diff --git a/plugins/power/gpm-common.c b/plugins/power/gpm-common.c
index 54838b6..50894fe 100644
--- a/plugins/power/gpm-common.c
+++ b/plugins/power/gpm-common.c
@@ -641,53 +641,6 @@ gpm_device_kind_to_localised_string (UpDeviceKind kind, guint number)
 }
 
 const gchar *
-gpm_device_kind_to_icon (UpDeviceKind kind)
-{
-        const gchar *icon = NULL;
-        switch (kind) {
-        case UP_DEVICE_KIND_LINE_POWER:
-                icon = "ac-adapter";
-                break;
-        case UP_DEVICE_KIND_BATTERY:
-                icon = "battery";
-                break;
-        case UP_DEVICE_KIND_UPS:
-                icon = "network-wired";
-                break;
-        case UP_DEVICE_KIND_MONITOR:
-                icon = "application-certificate";
-                break;
-        case UP_DEVICE_KIND_MOUSE:
-                icon = "input-mouse";
-                break;
-        case UP_DEVICE_KIND_KEYBOARD:
-                icon = "input-keyboard";
-                break;
-        case UP_DEVICE_KIND_PDA:
-                icon = "pda";
-                break;
-        case UP_DEVICE_KIND_PHONE:
-                icon = "phone";
-                break;
-#if UP_CHECK_VERSION(0,9,5)
-        case UP_DEVICE_KIND_MEDIA_PLAYER:
-                icon = "multimedia-player";
-                break;
-        case UP_DEVICE_KIND_TABLET:
-                icon = "input-tablet";
-                break;
-        case UP_DEVICE_KIND_COMPUTER:
-                icon = "computer-apple-ipad";
-                break;
-#endif
-        default:
-                g_warning ("enum unrecognised: %i", kind);
-                icon = "gtk-help";
-        }
-        return icon;
-}
-
-const gchar *
 gpm_device_technology_to_localised_string (UpDeviceTechnology technology_enum)
 {
         const gchar *technology = NULL;
diff --git a/plugins/power/gpm-common.h b/plugins/power/gpm-common.h
index 291f333..eec4d7c 100644
--- a/plugins/power/gpm-common.h
+++ b/plugins/power/gpm-common.h
@@ -32,7 +32,6 @@ gchar           *gpm_get_timestring                     (guint           time);
 const gchar     *gpm_device_to_localised_string         (UpDevice       *device);
 const gchar     *gpm_device_kind_to_localised_string    (UpDeviceKind    kind,
                                                          guint           number);
-const gchar     *gpm_device_kind_to_icon                (UpDeviceKind    kind);
 const gchar     *gpm_device_technology_to_localised_string (UpDeviceTechnology technology_enum);
 const gchar     *gpm_device_state_to_localised_string   (UpDeviceState   state);
 GIcon           *gpm_upower_get_device_icon             (UpDevice       *device,


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