From 46cbaf8e870aff4b3f3ab4e49466602126719e74 Mon Sep 17 00:00:00 2001 From: Dorota Czaplejewicz Date: Sun, 23 Feb 2020 11:25:28 +0000 Subject: [PATCH] keyboard: Remove unused code --- eek/eek-gtk-keyboard.c | 15 -------------- src/server-context-service.c | 38 ------------------------------------ 2 files changed, 53 deletions(-) diff --git a/eek/eek-gtk-keyboard.c b/eek/eek-gtk-keyboard.c index 94e7531d..51ded953 100644 --- a/eek/eek-gtk-keyboard.c +++ b/eek/eek-gtk-keyboard.c @@ -41,16 +41,6 @@ #include "src/layout.h" #include "src/submission.h" -enum { - PROP_0, - PROP_LAST -}; - -/* since 2.91.5 GDK_DRAWABLE was removed and gdk_cairo_create takes - GdkWindow as the argument */ -#ifndef GDK_DRAWABLE -#define GDK_DRAWABLE(x) (x) -#endif typedef struct _EekGtkKeyboardPrivate { @@ -329,8 +319,3 @@ eek_gtk_keyboard_new (LevelKeyboard *keyboard, EekboardContextService *eekservic priv->submission = submission; return GTK_WIDGET(ret); } - -EekRenderer *eek_gtk_keyboard_get_renderer(EekGtkKeyboard *self) { - EekGtkKeyboardPrivate *priv = eek_gtk_keyboard_get_instance_private (self); - return priv->renderer; -} diff --git a/src/server-context-service.c b/src/server-context-service.c index ecf6d014..cd25dc0e 100644 --- a/src/server-context-service.c +++ b/src/server-context-service.c @@ -30,8 +30,6 @@ enum { PROP_0, - PROP_SIZE_CONSTRAINT_LANDSCAPE, - PROP_SIZE_CONSTRAINT_PORTRAIT, PROP_VISIBLE, PROP_LAST }; @@ -51,9 +49,6 @@ struct _ServerContextService { guint hiding; guint last_requested_height; enum squeek_arrangement_kind last_type; - - gdouble size_constraint_landscape[2]; - gdouble size_constraint_portrait[2]; }; struct _ServerContextServiceClass { @@ -296,21 +291,8 @@ server_context_service_set_property (GObject *object, GParamSpec *pspec) { ServerContextService *context = SERVER_CONTEXT_SERVICE(object); - GVariant *variant; switch (prop_id) { - case PROP_SIZE_CONSTRAINT_LANDSCAPE: - variant = g_value_get_variant (value); - g_variant_get (variant, "(dd)", - &context->size_constraint_landscape[0], - &context->size_constraint_landscape[1]); - break; - case PROP_SIZE_CONSTRAINT_PORTRAIT: - variant = g_value_get_variant (value); - g_variant_get (variant, "(dd)", - &context->size_constraint_portrait[0], - &context->size_constraint_portrait[1]); - break; case PROP_VISIBLE: context->visible = g_value_get_boolean (value); break; @@ -359,26 +341,6 @@ server_context_service_class_init (ServerContextServiceClass *klass) gobject_class->get_property = server_context_service_get_property; gobject_class->dispose = server_context_service_dispose; - pspec = g_param_spec_variant ("size-constraint-landscape", - "Size constraint landscape", - "Size constraint landscape", - G_VARIANT_TYPE("(dd)"), - NULL, - G_PARAM_WRITABLE); - g_object_class_install_property (gobject_class, - PROP_SIZE_CONSTRAINT_LANDSCAPE, - pspec); - - pspec = g_param_spec_variant ("size-constraint-portrait", - "Size constraint portrait", - "Size constraint portrait", - G_VARIANT_TYPE("(dd)"), - NULL, - G_PARAM_WRITABLE); - g_object_class_install_property (gobject_class, - PROP_SIZE_CONSTRAINT_PORTRAIT, - pspec); - /** * Flag to indicate if keyboard is visible or not. */