Elm glayer: Removed unused/wanted if and variable.
authortasn <tasn@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Tue, 25 Oct 2011 09:51:41 +0000 (09:51 +0000)
committertasn <tasn@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Tue, 25 Oct 2011 09:51:41 +0000 (09:51 +0000)
git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/elementary@64382 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

src/lib/elm_gesture_layer.c

index fa85f51..5f30581 100644 (file)
@@ -957,16 +957,14 @@ _event_history_clear(Evas_Object *obj)
 
              if (pending)
                {
-               wd->pending = eina_list_remove_list(wd->pending, pending);
-               int device = ELM_MOUSE_DEVICE;
-               if (wd->event_history_list->event_type == EVAS_CALLBACK_MULTI_UP)
-                 device = ((Evas_Event_Multi_Up *)
-                       (wd->event_history_list->event))->device;
+                  wd->pending = eina_list_remove_list(wd->pending, pending);
                }
              else
-               wd->pending = _add_device_pending(wd->pending,
-                     wd->event_history_list->event,
-                     wd->event_history_list->event_type);
+               {
+                  wd->pending = _add_device_pending(wd->pending,
+                        wd->event_history_list->event,
+                        wd->event_history_list->event_type);
+               }
           }
 
         free(wd->event_history_list->event);