[gtk+/xi2: 852/1239] GdkDeviceXI2: Remove unused code.



commit cf0275876a55f6fe7e8d6a54d972bd14f95fcfd1
Author: Carlos Garnacho <carlos lanedo com>
Date:   Mon Aug 24 02:21:46 2009 +0200

    GdkDeviceXI2: Remove unused code.
    
    The axes code is now implemented in GdkDevice.

 gdk/x11/gdkdevice-xi2.c |   37 +------------------------------------
 gdk/x11/gdkdevice-xi2.h |    4 +---
 2 files changed, 2 insertions(+), 39 deletions(-)
---
diff --git a/gdk/x11/gdkdevice-xi2.c b/gdk/x11/gdkdevice-xi2.c
index 8183021..9bb30e9 100644
--- a/gdk/x11/gdkdevice-xi2.c
+++ b/gdk/x11/gdkdevice-xi2.c
@@ -30,7 +30,6 @@ typedef struct GdkDeviceXI2Private GdkDeviceXI2Private;
 struct GdkDeviceXI2Private
 {
   int device_id;
-  GArray *axes;
 };
 
 static void gdk_device_xi2_get_property (GObject      *object,
@@ -103,10 +102,6 @@ gdk_device_xi2_class_init (GdkDeviceXI2Class *klass)
 static void
 gdk_device_xi2_init (GdkDeviceXI2 *device)
 {
-  GdkDeviceXI2Private *priv;
-
-  priv = GDK_DEVICE_XI2_GET_PRIVATE (device);
-  priv->axes = g_array_new (FALSE, TRUE, sizeof (GdkDeviceAxis));
 }
 
 static void
@@ -157,6 +152,7 @@ gdk_device_xi2_get_state (GdkDevice       *device,
                           gdouble         *axes,
                           GdkModifierType *mask)
 {
+  /* FIXME: Implement */
 }
 
 static void
@@ -326,34 +322,3 @@ gdk_device_xi2_window_at_position (GdkDevice *device,
 
   return window;
 }
-
-void
-gdk_device_xi2_add_axis (GdkDeviceXI2 *device,
-                         GdkAxisUse    use)
-{
-  GdkDeviceXI2Private *priv;
-  GdkDeviceAxis axis_info;
-
-  priv = GDK_DEVICE_XI2_GET_PRIVATE (device);
-  axis_info.use = use;
-
-  switch (use)
-    {
-    case GDK_AXIS_X:
-    case GDK_AXIS_Y:
-      axis_info.min = 0.;
-      axis_info.max = 0.;
-      break;
-    case GDK_AXIS_XTILT:
-    case GDK_AXIS_YTILT:
-      axis_info.min = -1.;
-      axis_info.max = 1.;
-      break;
-    default:
-      axis_info.min = 0.;
-      axis_info.max = 1.;
-      break;
-    }
-
-  g_array_append_val (priv->axes, axis_info);
-}
diff --git a/gdk/x11/gdkdevice-xi2.h b/gdk/x11/gdkdevice-xi2.h
index 6816f9f..103c821 100644
--- a/gdk/x11/gdkdevice-xi2.h
+++ b/gdk/x11/gdkdevice-xi2.h
@@ -46,9 +46,7 @@ struct _GdkDeviceXI2Class
 
 GType gdk_device_xi2_get_type (void) G_GNUC_CONST;
 
-void  gdk_device_xi2_add_axis (GdkDeviceXI2 *device,
-                               GdkAxisUse    use);
 
 G_END_DECLS
 
-#endif /* __GDK_DEVICE_CORE_H__ */
+#endif /* __GDK_DEVICE_XI2_H__ */



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