From 9c48486d7ac73aa55b69a70cf1ef7009a0af2a09 Mon Sep 17 00:00:00 2001 From: Emmanuele Bassi Date: Tue, 18 Jan 2011 13:02:15 +0000 Subject: [PATCH] device/xi2: Remove the ::remove implementation Removing a device is only internal API, and we already have a function for that: we don't need to implement the DeviceManager virtual as well. --- clutter/x11/clutter-device-manager-xi2.c | 18 ++---------------- 1 file changed, 2 insertions(+), 16 deletions(-) diff --git a/clutter/x11/clutter-device-manager-xi2.c b/clutter/x11/clutter-device-manager-xi2.c index 0b033f449..c21aa4218 100644 --- a/clutter/x11/clutter-device-manager-xi2.c +++ b/clutter/x11/clutter-device-manager-xi2.c @@ -851,28 +851,14 @@ static void clutter_device_manager_xi2_add_device (ClutterDeviceManager *manager, ClutterInputDevice *device) { + /* XXX implement */ } static void clutter_device_manager_xi2_remove_device (ClutterDeviceManager *manager, ClutterInputDevice *device) { - ClutterDeviceManagerXI2 *manager_xi2 = CLUTTER_DEVICE_MANAGER_XI2 (manager); - gint device_id; - - device_id = clutter_input_device_get_device_id (device); - - manager_xi2->master_devices = - g_list_remove (manager_xi2->master_devices, device); - manager_xi2->slave_devices = - g_list_remove (manager_xi2->slave_devices, device); - - g_signal_emit_by_name (manager_xi2, "device-removed", device); - - g_object_run_dispose (G_OBJECT (device)); - - g_hash_table_remove (manager_xi2->devices_by_id, - GINT_TO_POINTER (device_id)); + /* XXX implement */ } static const GSList *