evdev: Drop redundant stage set check

Every path creating a input device in the evdev backend sets a stage,
so the check is unnecessary.

https://bugzilla.gnome.org/show_bug.cgi?id=752752
This commit is contained in:
Jonas Ådahl 2015-12-02 16:19:09 +08:00
parent 1d53b773fd
commit 9c26a98a6f

View File

@ -403,12 +403,7 @@ notify_absolute_motion (ClutterInputDevice *input_device,
ClutterStage *stage;
ClutterEvent *event = NULL;
/* We can drop the event on the floor if no stage has been
* associated with the device yet. */
stage = _clutter_input_device_get_stage (input_device);
if (stage == NULL)
return;
device_evdev = CLUTTER_INPUT_DEVICE_EVDEV (input_device);
manager_evdev = CLUTTER_DEVICE_MANAGER_EVDEV (input_device->device_manager);
seat = _clutter_input_device_evdev_get_seat (device_evdev);