ecore_wl: removes unreachable statements
authorWonki Kim <wonki_.kim@samsung.com>
Mon, 2 Mar 2020 09:26:39 +0000 (18:26 +0900)
committerJongmin Lee <jm105.lee@samsung.com>
Tue, 3 Mar 2020 21:16:58 +0000 (06:16 +0900)
Summary: this patch removes unreachable statements

Reviewers: Hermet

Reviewed By: Hermet

Subscribers: cedric, #reviewers, #committers

Tags: #efl

Differential Revision: https://phab.enlightenment.org/D11437

src/lib/ecore_wayland/ecore_wl_dnd.c
src/lib/ecore_wl2/ecore_wl2_dnd.c

index 35760f8..09f6c9c 100644 (file)
@@ -410,7 +410,6 @@ ecore_wl_dnd_drag_types_set(Ecore_Wl_Input *input, const char **types_offered)
    /* add these types to the data source */
    for (type = types_offered; *type; type++)
      {
-        if (!*type) continue;
         t = wl_array_add(&input->data_types, sizeof(*t));
         if (t)
           {
index 85c7e1d..e6366fa 100644 (file)
@@ -500,7 +500,6 @@ ecore_wl2_dnd_drag_types_set(Ecore_Wl2_Input *input, const char **types)
 
    for (type = types; *type; type++)
      {
-        if (!*type) continue;
         t = wl_array_add(&input->data.drag.types, sizeof(*t));
         if (t)
           {
@@ -635,7 +634,6 @@ ecore_wl2_dnd_selection_set(Ecore_Wl2_Input *input, const char **types)
 
    for (type = types; *type; type++)
      {
-        if (!*type) continue;
         t = wl_array_add(&input->data.selection.types, sizeof(*t));
         if (t)
           {