[mutter/wip/carlosg/input-refactors-pt1: 23/23] clutter: Drop unused field in ClutterInputDevice struct




commit dec7d78db74375cddde4314285974ae19aea29d5
Author: Carlos Garnacho <carlosg gnome org>
Date:   Fri Jun 5 19:31:27 2020 +0200

    clutter: Drop unused field in ClutterInputDevice struct
    
    https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1486

 clutter/clutter/clutter-input-device-private.h | 1 -
 clutter/clutter/clutter-input-device.c         | 2 +-
 2 files changed, 1 insertion(+), 2 deletions(-)
---
diff --git a/clutter/clutter/clutter-input-device-private.h b/clutter/clutter/clutter-input-device-private.h
index b3ff2dd698..cb2aeb62aa 100644
--- a/clutter/clutter/clutter-input-device-private.h
+++ b/clutter/clutter/clutter-input-device-private.h
@@ -134,7 +134,6 @@ struct _ClutterInputDevice
   int previous_y;
   uint32_t previous_time;
   int previous_button_number;
-  ClutterModifierType previous_state;
 
   GArray *axes;
 
diff --git a/clutter/clutter/clutter-input-device.c b/clutter/clutter/clutter-input-device.c
index ee26a640be..883f908489 100644
--- a/clutter/clutter/clutter-input-device.c
+++ b/clutter/clutter/clutter-input-device.c
@@ -515,7 +515,7 @@ clutter_input_device_init (ClutterInputDevice *self)
   self->current_x = self->previous_x = -1;
   self->current_y = self->previous_y = -1;
   self->current_button_number = self->previous_button_number = -1;
-  self->current_state = self->previous_state = 0;
+  self->current_state = 0;
 
   self->touch_sequences_info =
     g_hash_table_new_full (NULL, NULL,


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