efl/gesture: remove 'type' member from Efl_Canvas_Gesture_Data
authorMike Blumenkrantz <zmike@samsung.com>
Fri, 14 Feb 2020 14:36:53 +0000 (09:36 -0500)
committerJongmin Lee <jm105.lee@samsung.com>
Tue, 3 Mar 2020 21:16:58 +0000 (06:16 +0900)
this is no longer used

Reviewed-by: Xavi Artigas <xavierartigas@yahoo.es>
Differential Revision: https://phab.enlightenment.org/D11353

src/lib/evas/gesture/efl_canvas_gesture.c
src/lib/evas/gesture/efl_canvas_gesture_custom.c
src/lib/evas/gesture/efl_canvas_gesture_double_tap.c
src/lib/evas/gesture/efl_canvas_gesture_flick.c
src/lib/evas/gesture/efl_canvas_gesture_long_tap.c
src/lib/evas/gesture/efl_canvas_gesture_momentum.c
src/lib/evas/gesture/efl_canvas_gesture_private.h
src/lib/evas/gesture/efl_canvas_gesture_tap.c
src/lib/evas/gesture/efl_canvas_gesture_triple_tap.c
src/lib/evas/gesture/efl_canvas_gesture_zoom.c

index 231bc86..e1fbe78 100644 (file)
@@ -3,14 +3,6 @@
 
 #define MY_CLASS EFL_CANVAS_GESTURE_CLASS
 
-const Efl_Event_Description *
-_efl_gesture_type_get(const Eo *obj)
-{
-   Efl_Canvas_Gesture_Data *pd = efl_data_scope_get(obj, EFL_CANVAS_GESTURE_CLASS);
-
-   return pd->type;
-}
-
 EOLIAN static Efl_Canvas_Gesture_State
 _efl_canvas_gesture_state_get(const Eo *obj EINA_UNUSED, Efl_Canvas_Gesture_Data *pd)
 {
index 105558b..15fe0fe 100644 (file)
@@ -19,7 +19,6 @@ _efl_canvas_gesture_custom_efl_object_constructor(Eo *obj, Efl_Canvas_Gesture_Cu
    obj = efl_constructor(efl_super(obj, MY_CLASS));
 
    gd = efl_data_scope_get(obj, EFL_CANVAS_GESTURE_CLASS);
-   gd->type = EFL_EVENT_GESTURE_CUSTOM;
 
    return obj;
 }
index 971d49e..d29e61a 100644 (file)
@@ -10,7 +10,6 @@ _efl_canvas_gesture_double_tap_efl_object_constructor(Eo *obj, void *pd EINA_UNU
    obj = efl_constructor(efl_super(obj, MY_CLASS));
 
    gd = efl_data_scope_get(obj, EFL_CANVAS_GESTURE_CLASS);
-   gd->type = EFL_EVENT_GESTURE_DOUBLE_TAP;
 
    return obj;
 }
index faa8e38..47364b1 100644 (file)
@@ -10,7 +10,6 @@ _efl_canvas_gesture_flick_efl_object_constructor(Eo *obj, Efl_Canvas_Gesture_Fli
    obj = efl_constructor(efl_super(obj, MY_CLASS));
 
    gd = efl_data_scope_get(obj, EFL_CANVAS_GESTURE_CLASS);
-   gd->type = EFL_EVENT_GESTURE_FLICK;
 
    return obj;
 }
index 21f0055..9ab6ff0 100644 (file)
@@ -9,7 +9,6 @@ _efl_canvas_gesture_long_tap_efl_object_constructor(Eo *obj, void *pd EINA_UNUSE
 
    obj = efl_constructor(efl_super(obj, MY_CLASS));
    gd = efl_data_scope_get(obj, EFL_CANVAS_GESTURE_CLASS);
-   gd->type = EFL_EVENT_GESTURE_LONG_TAP;
 
    return obj;
 }
index 91d2ca8..4d00d0b 100644 (file)
@@ -10,7 +10,6 @@ _efl_canvas_gesture_momentum_efl_object_constructor(Eo *obj, Efl_Canvas_Gesture_
    obj = efl_constructor(efl_super(obj, MY_CLASS));
 
    gd = efl_data_scope_get(obj, EFL_CANVAS_GESTURE_CLASS);
-   gd->type = EFL_EVENT_GESTURE_MOMENTUM;
 
    return obj;
 }
index e7627d3..3ef595c 100644 (file)
@@ -11,7 +11,6 @@
 /* milliseconds */
 #define TAP_TOUCH_TIME_THRESHOLD (0.1 * 1000)
 
-const Efl_Event_Description * _efl_gesture_type_get(const Eo *obj);
 int _direction_get(Evas_Coord xx1, Evas_Coord xx2);
 Eina_Value *_recognizer_config_get(const Eo *obj, const char *name);
 Eina_Bool _event_multi_touch_get(const Efl_Canvas_Gesture_Touch *event);
@@ -139,7 +138,6 @@ struct _Efl_Canvas_Gesture_Recognizer_Custom_Data
 struct _Efl_Canvas_Gesture_Data
 {
    Efl_Canvas_Gesture_State        state;
-   const Efl_Event_Description    *type;
    Eina_Position2D                 hotspot;
    unsigned int                    timestamp;
    unsigned int                    touch_count;
index d777beb..a93dab9 100644 (file)
@@ -10,7 +10,6 @@ _efl_canvas_gesture_tap_efl_object_constructor(Eo *obj, void *pd EINA_UNUSED)
    obj = efl_constructor(efl_super(obj, MY_CLASS));
 
    gd = efl_data_scope_get(obj, EFL_CANVAS_GESTURE_CLASS);
-   gd->type = EFL_EVENT_GESTURE_TAP;
 
    return obj;
 }
index 5a6bb2f..d27dcec 100644 (file)
@@ -10,7 +10,6 @@ _efl_canvas_gesture_triple_tap_efl_object_constructor(Eo *obj, void *pd EINA_UNU
    obj = efl_constructor(efl_super(obj, MY_CLASS));
 
    gd = efl_data_scope_get(obj, EFL_CANVAS_GESTURE_CLASS);
-   gd->type = EFL_EVENT_GESTURE_TRIPLE_TAP;
 
    return obj;
 }
index 9ea7533..d8f73ba 100644 (file)
@@ -9,7 +9,6 @@ _efl_canvas_gesture_zoom_efl_object_constructor(Eo *obj, Efl_Canvas_Gesture_Zoom
 
    obj = efl_constructor(efl_super(obj, MY_CLASS));
    gd = efl_data_scope_get(obj, EFL_CANVAS_GESTURE_CLASS);
-   gd->type = EFL_EVENT_GESTURE_ZOOM;
 
    return obj;
 }