[gnome-shell] st-clipboard: Remove get/set_property functions.



commit ff1ea4b1c94a7055b2b5189792308079ca17aec9
Author: Andrea Azzarone <andrea azzarone canonical com>
Date:   Fri Feb 22 14:36:27 2019 +0100

    st-clipboard: Remove get/set_property functions.
    
    Remove st_clipboard_get_property and st_clipboard_set_property because they are
    identical to the default implementation.
    
    https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/414

 src/st/st-clipboard.c | 28 ----------------------------
 1 file changed, 28 deletions(-)
---
diff --git a/src/st/st-clipboard.c b/src/st/st-clipboard.c
index d5b1395e4..2c86f9a22 100644
--- a/src/st/st-clipboard.c
+++ b/src/st/st-clipboard.c
@@ -58,32 +58,6 @@ static Atom __atom_clip = None;
 static Atom __utf8_string = None;
 static Atom __atom_targets = None;
 
-static void
-st_clipboard_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
-st_clipboard_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
 st_clipboard_dispose (GObject *object)
 {
@@ -180,8 +154,6 @@ st_clipboard_class_init (StClipboardClass *klass)
 {
   GObjectClass *object_class = G_OBJECT_CLASS (klass);
 
-  object_class->get_property = st_clipboard_get_property;
-  object_class->set_property = st_clipboard_set_property;
   object_class->dispose = st_clipboard_dispose;
   object_class->finalize = st_clipboard_finalize;
 }


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