Remove build warning
[platform/core/uifw/inputdelegator.git] / src / w-input-selector.cpp
index 4760a7a..542d2bb 100755 (executable)
@@ -164,26 +164,6 @@ static void _keyboard_clicked_cb(void *data, Evas_Object * obj, void *event_info
        input_keyboard_launch(ad->win_main, data);
 }
 
-static void __bt_connection_result_cb(app_control_h request, app_control_h reply, app_control_result_e result, void *user_data)
-{
-       char *val = NULL;
-
-       if (reply == NULL) {
-               PRINTFUNC(DLOG_ERROR, "service_h is NULL");
-               return;
-       }
-
-       app_control_get_extra_data(reply, "__BT_CONNECTION__", &val);
-       if (val) {
-               if ( strcmp(val, "Connected") == 0 ) {
-                       PRINTFUNC(DLOG_ERROR, "BT Connected");
-               } else {
-                       PRINTFUNC(DLOG_ERROR, "BT Not Connected");
-               }
-               free(val);
-       }
-}
-
 static Evas_Object * __ise_gl_2button_content_get(void *data, Evas_Object *obj, const char *part)
 {
        char *first_input_type = *(g_input_type_data.input_type_array + 0);
@@ -202,11 +182,9 @@ static Evas_Object * __ise_gl_2button_content_get(void *data, Evas_Object *obj,
                        string path_ic;
                        if(!strcmp(first_input_type, "input_voice")) {
                                path_ic = path + "images/w_mode_stt_ic.png";
-                       }
-                       else if(!strcmp(first_input_type, "input_emoticon")) {
+                       } else if (!strcmp(first_input_type, "input_emoticon")) {
                                path_ic = path + "images/Delta_w_mode_emoticon_ic.png";
-                       }
-                       else if(!strcmp(first_input_type, "input_keyboard")) {
+                       } else if (!strcmp(first_input_type, "input_keyboard")) {
                                path_ic = path + "images/w_mode_keyboard_ic.png";
                                evas_object_propagate_events_set(btn, EINA_FALSE);
                        }
@@ -218,11 +196,9 @@ static Evas_Object * __ise_gl_2button_content_get(void *data, Evas_Object *obj,
                        string path_ic;
                        if(!strcmp(second_input_type, "input_voice")) {
                                path_ic = path + "images/w_mode_stt_ic.png";
-                       }
-                       else if(!strcmp(second_input_type, "input_emoticon")) {
+                       } else if (!strcmp(second_input_type, "input_emoticon")) {
                                path_ic = path + "images/Delta_w_mode_emoticon_ic.png";
-                       }
-                       else if(!strcmp(second_input_type, "input_keyboard")) {
+                       } else if (!strcmp(second_input_type, "input_keyboard")) {
                                path_ic = path + "images/w_mode_keyboard_ic.png";
                                evas_object_propagate_events_set(btn, EINA_FALSE);
                        }
@@ -241,11 +217,9 @@ static Evas_Object * __ise_gl_2button_content_get(void *data, Evas_Object *obj,
                        evas_object_layer_set(btn, 32000);
                        if(!strcmp(first_input_type, "input_voice")) {
                                evas_object_smart_callback_add(btn, "clicked", _stt_clicked_cb, app_data);
-                       }
-                       else if(!strcmp(first_input_type, "input_emoticon")) {
+                       } else if (!strcmp(first_input_type, "input_emoticon")) {
                                evas_object_smart_callback_add(btn, "clicked", _emoticon_clicked_cb, app_data);
-                       }
-                       else if(!strcmp(first_input_type, "input_keyboard")) {
+                       } else if (!strcmp(first_input_type, "input_keyboard")) {
                                evas_object_propagate_events_set(btn, EINA_FALSE);
                                evas_object_smart_callback_add(btn, "clicked", _keyboard_clicked_cb, app_data);
                        }
@@ -253,11 +227,9 @@ static Evas_Object * __ise_gl_2button_content_get(void *data, Evas_Object *obj,
                        evas_object_layer_set(btn, 32000);
                        if(!strcmp(second_input_type, "input_voice")) {
                                evas_object_smart_callback_add(btn, "clicked", _stt_clicked_cb, app_data);
-                       }
-                       else if(!strcmp(second_input_type, "input_emoticon")) {
+                       } else if (!strcmp(second_input_type, "input_emoticon")) {
                                evas_object_smart_callback_add(btn, "clicked", _emoticon_clicked_cb, app_data);
-                       }
-                       else if(!strcmp(second_input_type, "input_keyboard")) {
+                       } else if (!strcmp(second_input_type, "input_keyboard")) {
                                evas_object_propagate_events_set(btn, EINA_FALSE);
                                evas_object_smart_callback_add(btn, "clicked", _keyboard_clicked_cb, app_data);
                        }
@@ -281,7 +253,7 @@ static Evas_Object * __ise_gl_3button_content_get(void *data, Evas_Object *obj,
                elm_image_resizable_set(ic, EINA_TRUE, EINA_TRUE);
                string path = get_resource_path();
                if (!strcmp(part, "elm.icon.1")) {
-                       elm_object_style_set(btn, "anchor");
+                       elm_object_style_set(btn, "anchor");
                        string path_ic = path + "images/w_mode_stt_ic.png";
                        elm_image_file_set(ic, path_ic.c_str(), NULL);
                        elm_object_content_set(btn, ic);
@@ -608,7 +580,7 @@ void _create_genlist_items(void* user_data)
                itc1->func.content_get = __ise_gl_2button_content_get;
                itc1->func.state_get = NULL;
                itc1->func.del = NULL;
-       }else{
+       } else {
                itc1->item_style = "3button";
                itc1->func.text_get = NULL;
                itc1->func.content_get = __ise_gl_3button_content_get;
@@ -726,7 +698,7 @@ void _app_service(app_control_h service, void* user_data)
                ret = app_control_get_extra_data_array(service, APP_CONTROL_DATA_INPUT_TYPE, &input_type_array, &input_type_array_len);
                g_input_type_data.input_type_array = input_type_array;
                g_input_type_data.input_type_array_len = input_type_array_len;
-       }else{
+       } else {
                ret = app_control_get_extra_data(service, APP_CONTROL_DATA_INPUT_TYPE, &context);
                if (ret == APP_CONTROL_ERROR_NONE) {
                        if (!strcmp(context, "input_voice")) {