diff options
author | monsta <[email protected]> | 2016-01-09 20:01:07 +0300 |
---|---|---|
committer | monsta <[email protected]> | 2016-01-09 20:25:31 +0300 |
commit | b761eff30e41233358958d64bb4f87d26010fa57 (patch) | |
tree | 3ecb5c5d3c1362353ba73f20e9363ccd2f7ef13a /plugins | |
parent | cba3c74a79ae338dc4e8803b9c0aa72983512797 (diff) | |
download | mate-settings-daemon-b761eff30e41233358958d64bb4f87d26010fa57.tar.bz2 mate-settings-daemon-b761eff30e41233358958d64bb4f87d26010fa57.tar.xz |
mouse: remove useless code
it either does nothing or only calls parent functions
taken from
https://git.gnome.org/browse/gnome-settings-daemon/commit?id=1f267afcbd7a7b7a5dac6154e420bfae780634e3
https://git.gnome.org/browse/gnome-settings-daemon/commit?id=98df44761b4f0c70078df635aaa68adff6454380
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/mouse/msd-mouse-manager.c | 66 |
1 files changed, 0 insertions, 66 deletions
diff --git a/plugins/mouse/msd-mouse-manager.c b/plugins/mouse/msd-mouse-manager.c index 4bcaabc..a8cc697 100644 --- a/plugins/mouse/msd-mouse-manager.c +++ b/plugins/mouse/msd-mouse-manager.c @@ -109,81 +109,15 @@ G_DEFINE_TYPE (MsdMouseManager, msd_mouse_manager, G_TYPE_OBJECT) static gpointer manager_object = NULL; static void -msd_mouse_manager_set_property (GObject *object, - guint prop_id, - const GValue *value, - GParamSpec *pspec) -{ - MsdMouseManager *self; - - self = MSD_MOUSE_MANAGER (object); - - switch (prop_id) { - default: - G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec); - break; - } -} - -static void -msd_mouse_manager_get_property (GObject *object, - guint prop_id, - GValue *value, - GParamSpec *pspec) -{ - MsdMouseManager *self; - - self = MSD_MOUSE_MANAGER (object); - - switch (prop_id) { - default: - G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec); - break; - } -} - -static GObject * -msd_mouse_manager_constructor (GType type, - guint n_construct_properties, - GObjectConstructParam *construct_properties) -{ - MsdMouseManager *mouse_manager; - MsdMouseManagerClass *klass; - - klass = MSD_MOUSE_MANAGER_CLASS (g_type_class_peek (MSD_TYPE_MOUSE_MANAGER)); - - mouse_manager = MSD_MOUSE_MANAGER (G_OBJECT_CLASS (msd_mouse_manager_parent_class)->constructor (type, - n_construct_properties, - construct_properties)); - - return G_OBJECT (mouse_manager); -} - -static void -msd_mouse_manager_dispose (GObject *object) -{ - MsdMouseManager *mouse_manager; - - mouse_manager = MSD_MOUSE_MANAGER (object); - - G_OBJECT_CLASS (msd_mouse_manager_parent_class)->dispose (object); -} - -static void msd_mouse_manager_class_init (MsdMouseManagerClass *klass) { GObjectClass *object_class = G_OBJECT_CLASS (klass); - object_class->get_property = msd_mouse_manager_get_property; - object_class->set_property = msd_mouse_manager_set_property; - object_class->constructor = msd_mouse_manager_constructor; - object_class->dispose = msd_mouse_manager_dispose; object_class->finalize = msd_mouse_manager_finalize; g_type_class_add_private (klass, sizeof (MsdMouseManagerPrivate)); } - #ifdef HAVE_X11_EXTENSIONS_XINPUT_H static gboolean supports_xinput_devices (void) |