[net-popup] Remove dead code. 36/176336/2 accepted/tizen/unified/20180425.062314 submit/tizen/20180424.084858
authorNiraj Kumar Goit <niraj.g@samsung.com>
Wed, 18 Apr 2018 11:15:17 +0000 (16:45 +0530)
committerNiraj Kumar Goit <niraj.g@samsung.com>
Wed, 18 Apr 2018 11:42:25 +0000 (17:12 +0530)
__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>
packaging/net.netpopup.spec
src/net-popup.c

index d72cd84..c0d8251 100755 (executable)
@@ -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
index 9d64598..ff2f72f 100755 (executable)
@@ -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);