[gnome-control-center/wip/gbsneto/new-keyboard-panel: 2/3] keyboard: remove unused code
- From: Georges Basile Stavracas Neto <gbsneto src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-control-center/wip/gbsneto/new-keyboard-panel: 2/3] keyboard: remove unused code
- Date: Thu, 21 Jul 2016 23:08:45 +0000 (UTC)
commit 27e5ac2e6a9896b014d87f8cc9ec9b3eb7ca2131
Author: Georges Basile Stavracas Neto <georges stavracas gmail com>
Date: Tue Jul 19 17:22:38 2016 -0300
keyboard: remove unused code
CcKeyboardItem overrides GObject:constructor with an
empty function that only hooks up with the parent
constructor.
Lets simplify the code by removing this blank function.
https://bugzilla.gnome.org/show_bug.cgi?id=769063
panels/keyboard/cc-keyboard-item.c | 15 ---------------
1 files changed, 0 insertions(+), 15 deletions(-)
---
diff --git a/panels/keyboard/cc-keyboard-item.c b/panels/keyboard/cc-keyboard-item.c
index e8d5271..7194a6a 100644
--- a/panels/keyboard/cc-keyboard-item.c
+++ b/panels/keyboard/cc-keyboard-item.c
@@ -244,20 +244,6 @@ cc_keyboard_item_get_property (GObject *object,
}
}
-static GObject *
-cc_keyboard_item_constructor (GType type,
- guint n_construct_properties,
- GObjectConstructParam *construct_properties)
-{
- CcKeyboardItem *keyboard_item;
-
- keyboard_item = CC_KEYBOARD_ITEM (G_OBJECT_CLASS (cc_keyboard_item_parent_class)->constructor (type,
-
n_construct_properties,
-
construct_properties));
-
- return G_OBJECT (keyboard_item);
-}
-
static void
cc_keyboard_item_class_init (CcKeyboardItemClass *klass)
{
@@ -265,7 +251,6 @@ cc_keyboard_item_class_init (CcKeyboardItemClass *klass)
object_class->get_property = cc_keyboard_item_get_property;
object_class->set_property = cc_keyboard_item_set_property;
- object_class->constructor = cc_keyboard_item_constructor;
object_class->finalize = cc_keyboard_item_finalize;
g_object_class_install_property (object_class,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]