[gnome-control-center/gnome-3-12] background: Remove empty property getters and setters



commit ff5a915f67b76e541f4d3786a56bce5d250430d4
Author: Debarshi Ray <debarshir gnome org>
Date:   Tue Jun 17 11:28:20 2014 +0200

    background: Remove empty property getters and setters
    
    https://bugzilla.gnome.org/show_bug.cgi?id=731713

 panels/background/bg-pictures-source.c   |   28 ----------------------------
 panels/background/bg-wallpapers-source.c |   28 ----------------------------
 2 files changed, 0 insertions(+), 56 deletions(-)
---
diff --git a/panels/background/bg-pictures-source.c b/panels/background/bg-pictures-source.c
index 07e5e77..d10e012 100644
--- a/panels/background/bg-pictures-source.c
+++ b/panels/background/bg-pictures-source.c
@@ -73,32 +73,6 @@ const char * const screenshot_types[] = {
 static char *bg_pictures_source_get_unique_filename (const char *uri);
 
 static void
-bg_pictures_source_get_property (GObject    *object,
-                                  guint       property_id,
-                                  GValue     *value,
-                                  GParamSpec *pspec)
-{
-  switch (property_id)
-    {
-    default:
-      G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
-    }
-}
-
-static void
-bg_pictures_source_set_property (GObject      *object,
-                                  guint         property_id,
-                                  const GValue *value,
-                                  GParamSpec   *pspec)
-{
-  switch (property_id)
-    {
-    default:
-      G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
-    }
-}
-
-static void
 bg_pictures_source_dispose (GObject *object)
 {
   BgPicturesSourcePrivate *priv = BG_PICTURES_SOURCE (object)->priv;
@@ -137,8 +111,6 @@ bg_pictures_source_class_init (BgPicturesSourceClass *klass)
 
   g_type_class_add_private (klass, sizeof (BgPicturesSourcePrivate));
 
-  object_class->get_property = bg_pictures_source_get_property;
-  object_class->set_property = bg_pictures_source_set_property;
   object_class->dispose = bg_pictures_source_dispose;
   object_class->finalize = bg_pictures_source_finalize;
 }
diff --git a/panels/background/bg-wallpapers-source.c b/panels/background/bg-wallpapers-source.c
index d778e47..a741bbf 100644
--- a/panels/background/bg-wallpapers-source.c
+++ b/panels/background/bg-wallpapers-source.c
@@ -41,32 +41,6 @@ struct _BgWallpapersSourcePrivate
 
 
 static void
-bg_wallpapers_source_get_property (GObject    *object,
-                                   guint       property_id,
-                                   GValue     *value,
-                                   GParamSpec *pspec)
-{
-  switch (property_id)
-    {
-    default:
-      G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
-    }
-}
-
-static void
-bg_wallpapers_source_set_property (GObject      *object,
-                                    guint         property_id,
-                                    const GValue *value,
-                                    GParamSpec   *pspec)
-{
-  switch (property_id)
-    {
-    default:
-      G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
-    }
-}
-
-static void
 bg_wallpapers_source_dispose (GObject *object)
 {
   BgWallpapersSourcePrivate *priv = BG_WALLPAPERS_SOURCE (object)->priv;
@@ -84,8 +58,6 @@ bg_wallpapers_source_class_init (BgWallpapersSourceClass *klass)
 
   g_type_class_add_private (klass, sizeof (BgWallpapersSourcePrivate));
 
-  object_class->get_property = bg_wallpapers_source_get_property;
-  object_class->set_property = bg_wallpapers_source_set_property;
   object_class->dispose = bg_wallpapers_source_dispose;
 }
 


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