[Attach-panel] Remove the unused code 20/96520/1 accepted/tizen/3.0/mobile/20161110.022115 submit/tizen_3.0/20161109.080613
authormoon87.park <moon87.park@samsung.com>
Wed, 9 Nov 2016 08:03:44 +0000 (17:03 +0900)
committermoon87.park <moon87.park@samsung.com>
Wed, 9 Nov 2016 08:03:44 +0000 (17:03 +0900)
Change-Id: Ie79cbac2d258ed11469d8a25ef4523ca9b14eb84

src/grid.c
src/ug.c

index fa98ffa89c48ea1ca09627fe9b4c240fcaf3020f..5bc08fe6e1d9f872cb5e1c940ff77527384e355e 100644 (file)
@@ -202,35 +202,12 @@ static void __reply_cb(app_control_h request, app_control_h reply, app_control_r
        ret_if(!content_info);
        ret_if(!content_info->attach_panel);
 
-       attach_panel_h attach_panel = content_info->attach_panel; // product only
+       attach_panel_h attach_panel = content_info->attach_panel;
        ret_if(_attach_panel_is_deleted(attach_panel));
 
-       /* This is just for protocol log */
        _D("relay callback is called");
-#if 0 // memory leak
-       ret = app_control_get_extra_data_array(reply, "http://tizen.org/appcontrol/data/selected", &select, &length);
-       if (APP_CONTROL_ERROR_NONE == ret && select) {
-               for (i = 0; i < length; i++) {
-                       _D("selected is %s[%d]", select[i], i);
-               }
-       }
-
-       ret = app_control_get_extra_data_array(reply, "http://tizen.org/appcontrol/data/path", &select, &length);
-       if (APP_CONTROL_ERROR_NONE == ret && select) {
-               for (i = 0; i < length; i++) {
-                       _D("path is %s[%d]", select[i], i);
-               }
-       }
-#endif
 
        if (content_info->attach_panel->result_cb) {
-               /* XXX: call result callback after hiding panel
-               content_info->attach_panel->result_cb(content_info->attach_panel
-                               , content_info->innate_content_info->content_category
-                               , reply
-                               , result
-                               , content_info->attach_panel->result_data); */
-
                bool is_file_selected = false;
                ret = app_control_get_extra_data_array(reply, APP_CONTROL_DATA_SELECTED, &select, &length);
                if (ret == APP_CONTROL_ERROR_NONE && length > 0) {
index 78fd9de760b87ac7223d46e9e08843ce0cfe4c6f..a951e5ec1a62825b0ce8263d46d9b90e99db8305 100644 (file)
--- a/src/ug.c
+++ b/src/ug.c
@@ -32,10 +32,6 @@ static void __result_cb(ui_gadget_h ui_gadget, app_control_h result, void *priv)
 {
        content_s *content_info = priv;
        char *enable = NULL;
-       //char **select = NULL;
-
-       //int i = 0;
-       //int length = 0;
        int ret = 0;
 
        ret_if(!content_info);
@@ -110,23 +106,7 @@ static void __result_cb(ui_gadget_h ui_gadget, app_control_h result, void *priv)
 
        _D("The core of the panel sends the results to the caller");
 
-       /* This is just for protocol log */
        _D("relay callback is called");
-#if 0 // memory leak
-       ret = app_control_get_extra_data_array(result, "http://tizen.org/appcontrol/data/selected", &select, &length);
-       if (APP_CONTROL_ERROR_NONE == ret && select) {
-               for (i = 0; i < length; i++) {
-                       _D("selected is %s[%d]", select[i], i);
-               }
-       }
-
-       ret = app_control_get_extra_data_array(result, "http://tizen.org/appcontrol/data/path", &select, &length);
-       if (APP_CONTROL_ERROR_NONE == ret && select) {
-               for (i = 0; i < length; i++) {
-                       _D("path is %s[%d]", select[i], i);
-               }
-       }
-#endif
 
        if (content_info->attach_panel->result_cb) {
                attach_panel_h attach_panel = content_info->attach_panel;
@@ -144,7 +124,7 @@ static void __result_cb(ui_gadget_h ui_gadget, app_control_h result, void *priv)
                if (need_hide) {
                        /* This is same with attach_panel_hide() */
                        _gesture_hide(content_info->attach_panel);
-                       _attach_panel_call_result_callback(attach_panel, content_info, result, APP_CONTROL_RESULT_SUCCEEDED, true); // product only
+                       _attach_panel_call_result_callback(attach_panel, content_info, result, APP_CONTROL_RESULT_SUCCEEDED, true);
                }
        } else {
                _D("content_info->attach_panel->result_cb is NULL");