jackdanielz pushed a commit to branch master.

http://git.enlightenment.org/core/elementary.git/commit/?id=83ae5df190d328c6d6263c614f8b5ef336b23cd9

commit 83ae5df190d328c6d6263c614f8b5ef336b23cd9
Author: Daniel Zaoui <daniel.za...@yahoo.com>
Date:   Sat Jun 13 12:22:52 2015 +0300

    DnD/X11: remove unused function
---
 src/lib/elm_cnp.c | 31 -------------------------------
 1 file changed, 31 deletions(-)

diff --git a/src/lib/elm_cnp.c b/src/lib/elm_cnp.c
index 88cdffc..f47b96b 100644
--- a/src/lib/elm_cnp.c
+++ b/src/lib/elm_cnp.c
@@ -217,7 +217,6 @@ static Eina_Bool      _x11_general_converter        (char 
*target, void *data, i
 static Eina_Bool      _x11_image_converter          (char *target, void *data, 
int size, void **data_ret, int *size_ret, Ecore_X_Atom *ttype, int *typesize);
 static Eina_Bool      _x11_vcard_send               (char *target, void *data, 
int size, void **data_ret, int *size_ret, Ecore_X_Atom *ttype, int *typesize);
 static Eina_Bool      _x11_is_uri_type_data         (X11_Cnp_Selection *sel 
EINA_UNUSED, Ecore_X_Event_Selection_Notify *notify);
-static int            _x11_response_handler_targets (X11_Cnp_Selection *sel, 
Ecore_X_Event_Selection_Notify *);
 static int            _x11_notify_handler_targets   (X11_Cnp_Selection *sel, 
Ecore_X_Event_Selection_Notify *notify);
 static int            _x11_notify_handler_text      (X11_Cnp_Selection *sel, 
Ecore_X_Event_Selection_Notify *notify);
 static int            _x11_notify_handler_image     (X11_Cnp_Selection *sel, 
Ecore_X_Event_Selection_Notify *notify);
@@ -258,7 +257,6 @@ struct _Cnp_Atom
 #ifdef HAVE_ELEMENTARY_X
    /* Called by ecore to do conversion */
    X11_Converter_Fn_Cb      x_converter;
-   X11_Response_Handler_Cb  x_response;
    X11_Notify_Handler_Cb    x_notify;
    /* Atom */
    Ecore_X_Atom             x_atom;
@@ -440,7 +438,6 @@ static Cnp_Atom _atoms[CNP_N_ATOMS] = {
         .formats = ELM_SEL_FORMAT_TARGETS,
 #ifdef HAVE_ELEMENTARY_X
         .x_converter = _x11_targets_converter,
-        .x_response = _x11_response_handler_targets,
         .x_notify = _x11_notify_handler_targets,
 #endif
    },
@@ -449,7 +446,6 @@ static Cnp_Atom _atoms[CNP_N_ATOMS] = {
         .formats = ELM_SEL_FORMAT_TARGETS,
 #ifdef HAVE_ELEMENTARY_X
         .x_converter = _x11_targets_converter,
-        .x_response = _x11_response_handler_targets,
         .x_notify = _x11_notify_handler_targets,
 #endif
    },
@@ -912,33 +908,6 @@ done:
 }
 
 static int
-_x11_response_handler_targets(X11_Cnp_Selection *sel, 
Ecore_X_Event_Selection_Notify *notify)
-{
-   Ecore_X_Selection_Data_Targets *targets;
-   Ecore_X_Atom *atomlist;
-   int i, j;
-
-   targets = notify->data;
-   atomlist = (Ecore_X_Atom *)(targets->data.data);
-
-   for (j = (CNP_ATOM_LISTING_ATOMS + 1); j < CNP_N_ATOMS; j++)
-     {
-        if (!(_atoms[j].formats & sel->requestformat)) continue;
-        for (i = 0; i < targets->data.length; i++)
-          {
-             if ((_atoms[j].x_atom == atomlist[i]) &&
-                 (_atoms[j].x_response))
-               goto found;
-          }
-     }
-   cnp_debug("No matching type found\n");
-   return 0;
-found:
-   sel->request(sel->xwin, _atoms[j].name);
-   return 0;
-}
-
-static int
 _x11_notify_handler_text(X11_Cnp_Selection *sel, 
Ecore_X_Event_Selection_Notify *notify)
 {
    Ecore_X_Selection_Data *data;

-- 


Reply via email to