[gnome-panel] remove unused function



commit b22e1869ef7ff401f83e0c96bedfb3d047a95adb
Author: Alberts Muktupāvels <alberts muktupavels gmail com>
Date:   Wed Nov 30 14:27:59 2016 +0200

    remove unused function

 applets/clock/system-timezone.c |   20 --------------------
 applets/clock/system-timezone.h |    1 -
 2 files changed, 0 insertions(+), 21 deletions(-)
---
diff --git a/applets/clock/system-timezone.c b/applets/clock/system-timezone.c
index b673929..88797c4 100644
--- a/applets/clock/system-timezone.c
+++ b/applets/clock/system-timezone.c
@@ -76,7 +76,6 @@ G_DEFINE_TYPE (SystemTimezone, system_timezone, G_TYPE_OBJECT)
 
 typedef struct {
         char *tz;
-        char *env_tz;
         GFileMonitor *monitors[CHECK_NB];
 } SystemTimezonePrivate;
 
@@ -118,17 +117,6 @@ system_timezone_get (SystemTimezone *systz)
         return priv->tz;
 }
 
-const char *
-system_timezone_get_env (SystemTimezone *systz)
-{
-        SystemTimezonePrivate *priv;
-
-        g_return_val_if_fail (IS_SYSTEM_TIMEZONE (systz), NULL);
-
-        priv = PRIVATE (systz);
-        return priv->env_tz;
-}
-
 static void
 system_timezone_class_init (SystemTimezoneClass *class)
 {
@@ -156,7 +144,6 @@ system_timezone_init (SystemTimezone *systz)
         SystemTimezonePrivate *priv = PRIVATE (systz);
 
         priv->tz = NULL;
-        priv->env_tz = NULL;
         for (i = 0; i < CHECK_NB; i++) 
                 priv->monitors[i] = NULL;
 }
@@ -183,8 +170,6 @@ system_timezone_constructor (GType                  type,
 
         priv->tz = system_timezone_find ();
 
-        priv->env_tz = g_strdup (g_getenv ("TZ"));
-
         for (i = 0; i < CHECK_NB; i++) {
                 GFile     *file;
                 GFile     *parent;
@@ -232,11 +217,6 @@ system_timezone_finalize (GObject *obj)
                 priv->tz = NULL;
         }
 
-        if (priv->env_tz) {
-                g_free (priv->env_tz);
-                priv->env_tz = NULL;
-        }
-
         for (i = 0; i < CHECK_NB; i++) {
                 if (priv->monitors[i])
                         g_object_unref (priv->monitors[i]);
diff --git a/applets/clock/system-timezone.h b/applets/clock/system-timezone.h
index cbf171d..52859fa 100644
--- a/applets/clock/system-timezone.h
+++ b/applets/clock/system-timezone.h
@@ -58,7 +58,6 @@ GType system_timezone_get_type (void);
 SystemTimezone *system_timezone_new (void);
 
 const char *system_timezone_get (SystemTimezone *systz);
-const char *system_timezone_get_env (SystemTimezone *systz);
 
 G_END_DECLS
 #endif /* __SYSTEM_TIMEZONE_H__ */


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