summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Zaoui <daniel.zaoui@yahoo.com>2015-06-13 12:22:52 +0300
committerDaniel Zaoui <daniel.zaoui@yahoo.com>2015-06-13 12:29:35 +0300
commit83ae5df190d328c6d6263c614f8b5ef336b23cd9 (patch)
treebb380b065fb873cd1b30a2c8e65b34a40dad0d8a
parent1acd0f4d34d4d2a9b2d6159c4fa7c7ed1413627c (diff)
DnD/X11: remove unused function
-rw-r--r--src/lib/elm_cnp.c31
1 files changed, 0 insertions, 31 deletions
diff --git a/src/lib/elm_cnp.c b/src/lib/elm_cnp.c
index 88cdffc7e..f47b96bb2 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
217static Eina_Bool _x11_image_converter (char *target, void *data, int size, void **data_ret, int *size_ret, Ecore_X_Atom *ttype, int *typesize); 217static Eina_Bool _x11_image_converter (char *target, void *data, int size, void **data_ret, int *size_ret, Ecore_X_Atom *ttype, int *typesize);
218static Eina_Bool _x11_vcard_send (char *target, void *data, int size, void **data_ret, int *size_ret, Ecore_X_Atom *ttype, int *typesize); 218static Eina_Bool _x11_vcard_send (char *target, void *data, int size, void **data_ret, int *size_ret, Ecore_X_Atom *ttype, int *typesize);
219static Eina_Bool _x11_is_uri_type_data (X11_Cnp_Selection *sel EINA_UNUSED, Ecore_X_Event_Selection_Notify *notify); 219static Eina_Bool _x11_is_uri_type_data (X11_Cnp_Selection *sel EINA_UNUSED, Ecore_X_Event_Selection_Notify *notify);
220static int _x11_response_handler_targets (X11_Cnp_Selection *sel, Ecore_X_Event_Selection_Notify *);
221static int _x11_notify_handler_targets (X11_Cnp_Selection *sel, Ecore_X_Event_Selection_Notify *notify); 220static int _x11_notify_handler_targets (X11_Cnp_Selection *sel, Ecore_X_Event_Selection_Notify *notify);
222static int _x11_notify_handler_text (X11_Cnp_Selection *sel, Ecore_X_Event_Selection_Notify *notify); 221static int _x11_notify_handler_text (X11_Cnp_Selection *sel, Ecore_X_Event_Selection_Notify *notify);
223static int _x11_notify_handler_image (X11_Cnp_Selection *sel, Ecore_X_Event_Selection_Notify *notify); 222static int _x11_notify_handler_image (X11_Cnp_Selection *sel, Ecore_X_Event_Selection_Notify *notify);
@@ -258,7 +257,6 @@ struct _Cnp_Atom
258#ifdef HAVE_ELEMENTARY_X 257#ifdef HAVE_ELEMENTARY_X
259 /* Called by ecore to do conversion */ 258 /* Called by ecore to do conversion */
260 X11_Converter_Fn_Cb x_converter; 259 X11_Converter_Fn_Cb x_converter;
261 X11_Response_Handler_Cb x_response;
262 X11_Notify_Handler_Cb x_notify; 260 X11_Notify_Handler_Cb x_notify;
263 /* Atom */ 261 /* Atom */
264 Ecore_X_Atom x_atom; 262 Ecore_X_Atom x_atom;
@@ -440,7 +438,6 @@ static Cnp_Atom _atoms[CNP_N_ATOMS] = {
440 .formats = ELM_SEL_FORMAT_TARGETS, 438 .formats = ELM_SEL_FORMAT_TARGETS,
441#ifdef HAVE_ELEMENTARY_X 439#ifdef HAVE_ELEMENTARY_X
442 .x_converter = _x11_targets_converter, 440 .x_converter = _x11_targets_converter,
443 .x_response = _x11_response_handler_targets,
444 .x_notify = _x11_notify_handler_targets, 441 .x_notify = _x11_notify_handler_targets,
445#endif 442#endif
446 }, 443 },
@@ -449,7 +446,6 @@ static Cnp_Atom _atoms[CNP_N_ATOMS] = {
449 .formats = ELM_SEL_FORMAT_TARGETS, 446 .formats = ELM_SEL_FORMAT_TARGETS,
450#ifdef HAVE_ELEMENTARY_X 447#ifdef HAVE_ELEMENTARY_X
451 .x_converter = _x11_targets_converter, 448 .x_converter = _x11_targets_converter,
452 .x_response = _x11_response_handler_targets,
453 .x_notify = _x11_notify_handler_targets, 449 .x_notify = _x11_notify_handler_targets,
454#endif 450#endif
455 }, 451 },
@@ -912,33 +908,6 @@ done:
912} 908}
913 909
914static int 910static int
915_x11_response_handler_targets(X11_Cnp_Selection *sel, Ecore_X_Event_Selection_Notify *notify)
916{
917 Ecore_X_Selection_Data_Targets *targets;
918 Ecore_X_Atom *atomlist;
919 int i, j;
920
921 targets = notify->data;
922 atomlist = (Ecore_X_Atom *)(targets->data.data);
923
924 for (j = (CNP_ATOM_LISTING_ATOMS + 1); j < CNP_N_ATOMS; j++)
925 {
926 if (!(_atoms[j].formats & sel->requestformat)) continue;
927 for (i = 0; i < targets->data.length; i++)
928 {
929 if ((_atoms[j].x_atom == atomlist[i]) &&
930 (_atoms[j].x_response))
931 goto found;
932 }
933 }
934 cnp_debug("No matching type found\n");
935 return 0;
936found:
937 sel->request(sel->xwin, _atoms[j].name);
938 return 0;
939}
940
941static int
942_x11_notify_handler_text(X11_Cnp_Selection *sel, Ecore_X_Event_Selection_Notify *notify) 911_x11_notify_handler_text(X11_Cnp_Selection *sel, Ecore_X_Event_Selection_Notify *notify)
943{ 912{
944 Ecore_X_Selection_Data *data; 913 Ecore_X_Selection_Data *data;