[mutter/wip/garnacho/virtual-input-device: 22/22] clutter/evdev: Remove unused code



commit 8d35db462b73d3d6cf53ae09f962be969cf23c5b
Author: Carlos Garnacho <carlosg gnome org>
Date:   Mon Jul 11 18:44:01 2016 +0200

    clutter/evdev: Remove unused code
    
    This function moved to ClutterSeatEvdev

 .../clutter/evdev/clutter-device-manager-evdev.c   |   39 --------------------
 1 files changed, 0 insertions(+), 39 deletions(-)
---
diff --git a/clutter/clutter/evdev/clutter-device-manager-evdev.c 
b/clutter/clutter/evdev/clutter-device-manager-evdev.c
index dca8848..9fc12c2 100644
--- a/clutter/clutter/evdev/clutter-device-manager-evdev.c
+++ b/clutter/clutter/evdev/clutter-device-manager-evdev.c
@@ -346,45 +346,6 @@ notify_absolute_motion (ClutterInputDevice *input_device,
   queue_event (event);
 }
 
-static void
-notify_relative_motion (ClutterInputDevice *input_device,
-                        struct libinput_event_pointer *pointer_event)
-{
-  guint64 time_us;
-  double dx;
-  double dy;
-  double dx_unaccel;
-  double dy_unaccel;
-  gfloat new_x, new_y;
-  ClutterInputDeviceEvdev *device_evdev;
-  ClutterSeatEvdev *seat;
-  ClutterEvent *event;
-
-  /* We can drop the event on the floor if no stage has been
-   * associated with the device yet. */
-  if (!_clutter_input_device_get_stage (input_device))
-    return;
-
-  device_evdev = CLUTTER_INPUT_DEVICE_EVDEV (input_device);
-  seat = _clutter_input_device_evdev_get_seat (device_evdev);
-
-  dx = libinput_event_pointer_get_dx (pointer_event);
-  dy = libinput_event_pointer_get_dy (pointer_event);
-  new_x = seat->pointer_x + dx;
-  new_y = seat->pointer_y + dy;
-
-  time_us = libinput_event_pointer_get_time_usec (pointer_event);
-  event = new_absolute_motion_event (input_device, time_us, new_x, new_y, NULL);
-
-  dx_unaccel = libinput_event_pointer_get_dx_unaccelerated (pointer_event);
-  dy_unaccel = libinput_event_pointer_get_dy_unaccelerated (pointer_event);
-  _clutter_evdev_event_set_relative_motion (event,
-                                            dx, dy,
-                                            dx_unaccel, dy_unaccel);
-
-  queue_event (event);
-}
-
 static ClutterScrollDirection
 discrete_to_direction (gdouble discrete_x,
                        gdouble discrete_y)


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