evas: remove null check, passthrough list in _evas_event_object_list_in_get()
authorMike Blumenkrantz <zmike@osg.samsung.com>
Sat, 10 Jun 2017 00:16:08 +0000 (20:16 -0400)
committerMike Blumenkrantz <zmike@osg.samsung.com>
Fri, 9 Jun 2017 23:14:59 +0000 (19:14 -0400)
_evas_event_object_list_raw_in_get() already has a null check and uses the
last list member

no functional changes

src/lib/evas/canvas/evas_events.c

index b6b76c7..0fc4850 100644 (file)
@@ -1263,8 +1263,7 @@ _evas_event_object_list_in_get(Evas *eo_e, Eina_List *in,
                                const Eina_Inlist *list, Evas_Object *stop,
                                int x, int y, int *no_rep, Eina_Bool source)
 {
-   if (!list) return NULL;
-   return _evas_event_object_list_raw_in_get(eo_e, in, list->last, stop, x, y,
+   return _evas_event_object_list_raw_in_get(eo_e, in, list, stop, x, y,
                                              no_rep, source);
 }