raster pushed a commit to branch master.

http://git.enlightenment.org/core/elementary.git/commit/?id=7f42cab29c00272e1157f6bcf804430d11ec5d2f

commit 7f42cab29c00272e1157f6bcf804430d11ec5d2f
Author: Carsten Haitzler (Rasterman) <[email protected]>
Date:   Fri Aug 8 16:45:28 2014 +0900

    elm cnp - remove usless check/code according to CID 1193248
---
 src/lib/elm_cnp.c | 22 +++++++---------------
 1 file changed, 7 insertions(+), 15 deletions(-)

diff --git a/src/lib/elm_cnp.c b/src/lib/elm_cnp.c
index 2ce7e3e..3bd0af9 100644
--- a/src/lib/elm_cnp.c
+++ b/src/lib/elm_cnp.c
@@ -1704,21 +1704,13 @@ found:
           }
      }
 
-   if (dropable->last.type)
-     {
-        cnp_debug("doing a request then: %s\n", dropable->last.type);
-        _x11_selections[ELM_SEL_TYPE_XDND].xwin = drop->win;
-        _x11_selections[ELM_SEL_TYPE_XDND].requestwidget = dropable->obj;
-        _x11_selections[ELM_SEL_TYPE_XDND].requestformat = 
dropable->last.format;
-        _x11_selections[ELM_SEL_TYPE_XDND].active = EINA_TRUE;
-        _x11_selections[ELM_SEL_TYPE_XDND].action = act;
-
-        ecore_x_selection_xdnd_request(drop->win, dropable->last.type);
-     }
-   else
-     {
-        cnp_debug("cannot match format\n");
-     }
+   cnp_debug("doing a request then: %s\n", dropable->last.type);
+   _x11_selections[ELM_SEL_TYPE_XDND].xwin = drop->win;
+   _x11_selections[ELM_SEL_TYPE_XDND].requestwidget = dropable->obj;
+   _x11_selections[ELM_SEL_TYPE_XDND].requestformat = dropable->last.format;
+   _x11_selections[ELM_SEL_TYPE_XDND].active = EINA_TRUE;
+   _x11_selections[ELM_SEL_TYPE_XDND].action = act;
+   ecore_x_selection_xdnd_request(drop->win, dropable->last.type);
    return EINA_TRUE;
 }
 

-- 


Reply via email to