[gnome-settings-daemon] power: Remove gpm_device_technology_to_localised_string()



commit 829fc7b1c2494cabd7fdac402c53ec6f4c54a50b
Author: Bastien Nocera <hadess hadess net>
Date:   Thu Oct 10 12:38:14 2013 +0200

    power: Remove gpm_device_technology_to_localised_string()
    
    It was used in the translated description for the device, which we
    were only using when on UPS power.

 plugins/power/gpm-common.c |   45 --------------------------------------------
 plugins/power/gpm-common.h |    1 -
 2 files changed, 0 insertions(+), 46 deletions(-)
---
diff --git a/plugins/power/gpm-common.c b/plugins/power/gpm-common.c
index 50894fe..1dd25a7 100644
--- a/plugins/power/gpm-common.c
+++ b/plugins/power/gpm-common.c
@@ -495,11 +495,6 @@ gpm_upower_get_device_description (UpDevice *device)
                 /* TRANSLATORS: manufacturer */
                 g_string_append_printf (details, "<b>%s</b> %s\n", _("Vendor:"), vendor);
         }
-        if (technology != UP_DEVICE_TECHNOLOGY_UNKNOWN) {
-                text = gpm_device_technology_to_localised_string (technology);
-                /* TRANSLATORS: how the battery is made, e.g. Lithium Ion */
-                g_string_append_printf (details, "<b>%s</b> %s\n", _("Technology:"), text);
-        }
         if (serial) {
                 /* TRANSLATORS: serial number of the battery */
                 g_string_append_printf (details, "<b>%s</b> %s\n", _("Serial number:"), serial);
@@ -641,46 +636,6 @@ gpm_device_kind_to_localised_string (UpDeviceKind kind, guint number)
 }
 
 const gchar *
-gpm_device_technology_to_localised_string (UpDeviceTechnology technology_enum)
-{
-        const gchar *technology = NULL;
-        switch (technology_enum) {
-        case UP_DEVICE_TECHNOLOGY_LITHIUM_ION:
-                /* TRANSLATORS: battery technology */
-                technology = _("Lithium Ion");
-                break;
-        case UP_DEVICE_TECHNOLOGY_LITHIUM_POLYMER:
-                /* TRANSLATORS: battery technology */
-                technology = _("Lithium Polymer");
-                break;
-        case UP_DEVICE_TECHNOLOGY_LITHIUM_IRON_PHOSPHATE:
-                /* TRANSLATORS: battery technology */
-                technology = _("Lithium Iron Phosphate");
-                break;
-        case UP_DEVICE_TECHNOLOGY_LEAD_ACID:
-                /* TRANSLATORS: battery technology */
-                technology = _("Lead acid");
-                break;
-        case UP_DEVICE_TECHNOLOGY_NICKEL_CADMIUM:
-                /* TRANSLATORS: battery technology */
-                technology = _("Nickel Cadmium");
-                break;
-        case UP_DEVICE_TECHNOLOGY_NICKEL_METAL_HYDRIDE:
-                /* TRANSLATORS: battery technology */
-                technology = _("Nickel metal hydride");
-                break;
-        case UP_DEVICE_TECHNOLOGY_UNKNOWN:
-                /* TRANSLATORS: battery technology */
-                technology = _("Unknown technology");
-                break;
-        default:
-                g_assert_not_reached ();
-                break;
-        }
-        return technology;
-}
-
-const gchar *
 gpm_device_state_to_localised_string (UpDeviceState state)
 {
         const gchar *state_string = NULL;
diff --git a/plugins/power/gpm-common.h b/plugins/power/gpm-common.h
index eec4d7c..52fa39a 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_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,
                                                          gboolean        use_symbolic);


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