diff options
author | Niraj Kumar Goit <niraj.g@samsung.com> | 2018-04-18 16:45:17 +0530 |
---|---|---|
committer | Niraj Kumar Goit <niraj.g@samsung.com> | 2018-04-18 17:12:25 +0530 |
commit | 68c4e0639c29eaddd55160f924721f2385e77f25 (patch) | |
tree | 2c2a5324649c7626aaa61d67cdc17bd8d86039f6 | |
parent | 881ae10993c6f11a05cad6f92a2f07c5f06494e0 (diff) | |
download | net-popup-68c4e0639c29eaddd55160f924721f2385e77f25.tar.gz net-popup-68c4e0639c29eaddd55160f924721f2385e77f25.tar.bz2 net-popup-68c4e0639c29eaddd55160f924721f2385e77f25.zip |
[net-popup] Remove dead code.submit/tizen/20180424.084858accepted/tizen/unified/20180425.062314
__net_popup_send_dbus_msg() 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: Ia6c31f358401860935c74c0deca90c37a8ab083e
Signed-off-by: Niraj Kumar Goit <niraj.g@samsung.com>
-rwxr-xr-x | packaging/net.netpopup.spec | 2 | ||||
-rwxr-xr-x | src/net-popup.c | 45 |
2 files changed, 1 insertions, 46 deletions
diff --git a/packaging/net.netpopup.spec b/packaging/net.netpopup.spec index d72cd84..c0d8251 100755 --- a/packaging/net.netpopup.spec +++ b/packaging/net.netpopup.spec @@ -1,6 +1,6 @@ Name: net.netpopup Summary: Network Notification Popup application -Version: 0.2.88 +Version: 0.2.89 Release: 1 Group: App/Network License: Flora-1.1 diff --git a/src/net-popup.c b/src/net-popup.c index 9d64598..ff2f72f 100755 --- a/src/net-popup.c +++ b/src/net-popup.c @@ -182,42 +182,6 @@ void __net_popup_deinit_dbus(void) return; } -int __net_popup_send_dbus_msg(const char *resp) -{ - log_print(NET_POPUP, "__net_popup_send_dbus_msg()\n"); - - if (conn == NULL || resp == NULL) - return -1; - - GDBusConnection *gconn = NULL; - GVariant *msg = NULL; - char *module = "wifi"; - GError *err = NULL; - - gconn = g_bus_get_sync(DBUS_BUS_SYSTEM, NULL, &err); - if (err != NULL) { - g_error_free(err); - err = NULL; - return -1; - } - - msg = g_variant_new("(ss)", module, resp); - g_dbus_connection_emit_signal(gconn, NULL, "/Org/Tizen/Quickpanel", - "org.tizen.quickpanel", "ACTIVITY", msg, &err); - if (err) { - g_error_free(err); - return -1; - } - - g_variant_unref(msg); - - if (gconn) - g_object_unref(gconn); - - - return 0; -} - void __net_popup_send_data_usage_msg(const char *app_id, const char *iftype) { @@ -1079,10 +1043,6 @@ void _tethering_wifi_btn_yes_cb(void *data, Evas_Object *obj, void *event_info) bool result = FALSE; Evas_Object *popup = (Evas_Object *)data; - __net_popup_init_dbus(); - __net_popup_send_dbus_msg("progress_off"); - __net_popup_deinit_dbus(); - result = _net_popup_send_user_resp(RESP_WIFI_TETHERING_OFF, FALSE); if (true != result) log_print(NET_POPUP, "Failed to send user response "); @@ -1100,10 +1060,6 @@ void _tethering_wifi_ap_btn_yes_cb(void *data, Evas_Object *obj, void *event_inf bool result = FALSE; Evas_Object *popup = (Evas_Object *)data; - __net_popup_init_dbus(); - __net_popup_send_dbus_msg("progress_off"); - __net_popup_deinit_dbus(); - result = _net_popup_send_user_resp(RESP_WIFI_AP_TETHERING_OFF, FALSE); if (true != result) log_print(NET_POPUP, "Failed to send user response "); @@ -1432,7 +1388,6 @@ static void __net_popup_show_popup_with_user_resp(app_control_h request, evas_object_size_hint_weight_set(layout, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND); - __net_popup_send_dbus_msg("progress_on"); label = elm_label_add(popup); elm_label_line_wrap_set(label, ELM_WRAP_MIXED); elm_object_text_set(label, ALERT_STR_WIFI_MOBILE_AP_ON); |