[ug-mobile-ap] Remove dead code 21/176621/1 accepted/tizen_5.0_unified tizen_5.0 accepted/tizen/5.0/unified/20181102.011848 accepted/tizen/unified/20180425.062317 submit/tizen/20180424.084858 submit/tizen_5.0/20181101.000001
authorMilind Murhekar <m.murhekar@samsung.com>
Fri, 20 Apr 2018 09:04:42 +0000 (14:34 +0530)
committerMilind Murhekar <m.murhekar@samsung.com>
Fri, 20 Apr 2018 09:04:42 +0000 (14:34 +0530)
Description: __send_signal_qp() function uses g_dbus_connection_emit_signal
API to send "ACTIVITY" signal at "org.tizen.quickpanel" interface but
the signal is not handled at quickpanel application.

Change-Id: I3df758a65c19fa34d0a2ea592f4cb102d11a8f51
Signed-off-by: Milind Murhekar <m.murhekar@samsung.com>
include/mh_common_utility.h
src/mh_common_utility.c
src/mh_func_onoff.c
src/mh_main_ug.c
src/mh_popup.c

index e6ef80c..f09321b 100755 (executable)
@@ -63,7 +63,6 @@ int _get_sim_state(void);
 connection_cellular_state_e _get_cellular_state(void);
 int _get_checkbox_status(tethering_type_e type);
 bool _set_checkbox_status(tethering_type_e type, int value);
-int _send_signal_qp(const char *cmd);
 void _device_name_changed_cb(keynode_t *key, void *data);
 bool _set_vconf_prev_wifi_state(bool value);
 bool _get_vconf_prev_wifi_state();
index 6ba7260..bab0256 100644 (file)
@@ -630,43 +630,3 @@ bool _get_vconf_prev_wifi_state()
 
        return value ? true : false;
 }
-
-int _send_signal_qp(const char *cmd)
-{
-       DBG("+\n");
-
-       if (cmd == NULL) {
-               ERR("Invalid param");
-               return -1;
-       }
-
-       GDBusConnection *conn = NULL;
-       int ret = 0;
-       GVariant *message = NULL;
-       GError *err = NULL;
-
-       DBG("Sent dbus signal : %s\n", cmd);
-
-       conn = g_bus_get_sync(DBUS_BUS_SYSTEM, NULL, &err);
-       if (err != NULL) {
-               ERR("Failed connection to system bus[%s]", err->message);
-               g_error_free(err);
-               err = NULL;
-               return -1;
-       }
-       message = g_variant_new("(ss)", "wifi_hotspot", cmd);
-       g_dbus_connection_emit_signal(conn, NULL, "/Org/Tizen/Quickpanel",
-                       "org.tizen.quickpanel", "ACTIVITY", message, &err);
-       if (err) {
-               ERR("g_dbus_connection_emit_signal is failed and error is %s\n", err->message);
-               g_error_free(err);
-               ret = -1;
-       }
-       g_variant_unref(message);
-
-       if (conn)
-               g_object_unref(conn);
-
-       DBG("-\n");
-       return ret;
-}
index e6d8caf..b251f95 100644 (file)
@@ -110,7 +110,6 @@ gboolean _ps_recheck_timeout_cb(gpointer data)
                                recheck_count = 0;
                                return FALSE;
                        }
-               _send_signal_qp(QP_SIGNAL_PROGRESS_ON);
                } else if (ad->type == TETHERING_TYPE_BT && _create_bt_tethering_on_popup(ad) < 0) {
                                ERR("_create_bt_tethering_on_popup fail\n");
                                _update_tethering_item(ad, MH_STATE_NONE);
@@ -666,7 +665,6 @@ int _handle_wifi_onoff_change(mh_appdata_t *ad)
                                return -1;
                        }
 #endif
-                       _send_signal_qp(QP_SIGNAL_PROGRESS_OFF);
                }
                return 0;
        }
index 6a34cf1..23aa831 100755 (executable)
@@ -182,8 +182,6 @@ static void *on_create(ui_gadget_h ug, enum ug_mode mode,
        ugd->ug = ug;
        ad->gadget = ugd;
 
-       _send_signal_qp(QP_SIGNAL_PROGRESS_RESET);
-
        ecore_imf_init();
 
        ret = tethering_create(&ad->handle);
index 2c9a088..5036723 100755 (executable)
@@ -96,7 +96,6 @@ static void __handle_popup_resp(void *data, bool response)
                                _update_wifi_item(ad, MH_STATE_NONE);
                        }
                        _wifi_tethering_checkbox_popup_status_set(false);
-                       _send_signal_qp(QP_SIGNAL_PROGRESS_ON);
                        break;
 
                case MH_POPUP_BT_ON_CHECKBOX:
@@ -133,7 +132,6 @@ static void __handle_popup_resp(void *data, bool response)
                                ERR("wifi tethering off is failed : %d\n", ret);
                                _update_wifi_item(ad, MH_STATE_NONE);
                        }
-                       _send_signal_qp(QP_SIGNAL_PROGRESS_OFF);
                        break;
 
                case MH_POPUP_MOBILE_DATA_OFF:
@@ -149,7 +147,6 @@ static void __handle_popup_resp(void *data, bool response)
                switch (popup_type) {
                case MH_POPUP_WIFI_ON_CHECKBOX:
                        _update_tethering_enabling_item(ad, TETHERING_TYPE_WIFI, MH_STATE_NONE);
-                       _send_signal_qp(QP_SIGNAL_PROGRESS_RESET);
                        _wifi_tethering_checkbox_popup_status_set(false);
                        break;
 
@@ -169,7 +166,6 @@ static void __handle_popup_resp(void *data, bool response)
 
                case MH_POPUP_WIFI_OFF:
                        _update_tethering_enabling_item(ad, TETHERING_TYPE_WIFI, MH_STATE_NONE);
-                       _send_signal_qp(QP_SIGNAL_PROGRESS_RESET);
                        break;
 
                case MH_POPUP_MOBILE_DATA_OFF: