Fix Coverity CID1261286. Identical code for different branches
authorChris Michael <cp.michael@samsung.com>
Mon, 12 Jan 2015 17:12:52 +0000 (12:12 -0500)
committerChris Michael <cp.michael@samsung.com>
Mon, 12 Jan 2015 17:12:52 +0000 (12:12 -0500)
Signed-off-by: Chris Michael <cp.michael@samsung.com>
src/bin/e_dnd.c

index 65dc830..d358839 100644 (file)
@@ -1456,14 +1456,14 @@ _e_dnd_cb_event_dnd_selection(void *data __UNUSED__, int type __UNUSED__, void *
         for (i = 0; i < files->num_files; i++)
           {
              /* TODO: Check if hostname is in file:// uri */
-             if (!strncmp(files->files[i], "file://", 7))
-               l = eina_list_append(l, files->files[i]);
+             /* if (!strncmp(files->files[i], "file://", 7)) */
+             /*   l = eina_list_append(l, files->files[i]); */
              /* TODO: download files
                 else if (!strncmp(files->files[i], "http://", 7))
                 else if (!strncmp(files->files[i], "ftp://", 6))
               */
-             else
-               l = eina_list_append(l, files->files[i]);
+             /* else */
+             l = eina_list_append(l, files->files[i]);
           }
         _xdnd->data = l;
         _e_drag_xdnd_end(ev->win, _xdnd->x, _xdnd->y);