[gnome-panel] clock: remove unused signal
- From: Alberts Muktupāvels <muktupavels src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-panel] clock: remove unused signal
- Date: Wed, 30 Nov 2016 12:58:13 +0000 (UTC)
commit b5c2fb2f20d53d6edb03d0acd053a7522da474fa
Author: Alberts Muktupāvels <alberts muktupavels gmail com>
Date: Wed Nov 30 14:40:55 2016 +0200
clock: remove unused signal
applets/clock/system-timezone.c | 20 --------------------
applets/clock/system-timezone.h | 3 ---
2 files changed, 0 insertions(+), 23 deletions(-)
---
diff --git a/applets/clock/system-timezone.c b/applets/clock/system-timezone.c
index 88797c4..3b58c41 100644
--- a/applets/clock/system-timezone.c
+++ b/applets/clock/system-timezone.c
@@ -79,13 +79,6 @@ typedef struct {
GFileMonitor *monitors[CHECK_NB];
} SystemTimezonePrivate;
-enum {
- CHANGED,
- LAST_SIGNAL
-};
-
-static guint system_timezone_signals[LAST_SIGNAL] = { 0 };
-
static GObject *system_timezone_constructor (GType type,
guint n_construct_properties,
GObjectConstructParam *construct_properties);
@@ -125,15 +118,6 @@ system_timezone_class_init (SystemTimezoneClass *class)
g_obj_class->constructor = system_timezone_constructor;
g_obj_class->finalize = system_timezone_finalize;
- system_timezone_signals[CHANGED] =
- g_signal_new ("changed",
- G_OBJECT_CLASS_TYPE (g_obj_class),
- G_SIGNAL_RUN_FIRST,
- G_STRUCT_OFFSET (SystemTimezoneClass, changed),
- NULL, NULL,
- NULL,
- G_TYPE_NONE, 1, G_TYPE_STRING);
-
g_type_class_add_private (class, sizeof (SystemTimezonePrivate));
}
@@ -253,10 +237,6 @@ system_timezone_monitor_changed (GFileMonitor *handle,
if (strcmp (priv->tz, new_tz) != 0) {
g_free (priv->tz);
priv->tz = new_tz;
-
- g_signal_emit (G_OBJECT (user_data),
- system_timezone_signals[CHANGED],
- 0, priv->tz);
} else
g_free (new_tz);
}
diff --git a/applets/clock/system-timezone.h b/applets/clock/system-timezone.h
index 52859fa..4e5019d 100644
--- a/applets/clock/system-timezone.h
+++ b/applets/clock/system-timezone.h
@@ -48,9 +48,6 @@ typedef struct
typedef struct
{
GObjectClass g_object_class;
-
- void (* changed) (SystemTimezone *systz,
- const char *tz);
} SystemTimezoneClass;
GType system_timezone_get_type (void);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]