[net-config]: Fixed warning issue 13/56513/1
authorManeesh Jain <maneesh.jain@samsung.com>
Sun, 10 Jan 2016 13:35:34 +0000 (08:35 -0500)
committerManeesh Jain <maneesh.jain@samsung.com>
Sun, 10 Jan 2016 13:38:36 +0000 (08:38 -0500)
Description: Remove following static functions, not required
             anymore by net-config
             a. _start_supplicant()
             b.  _stop_supplicant()

Change-Id: Ie92cae31ff39e0ed0fbb89248a3239fadd140b5f
Signed-off-by: Maneesh Jain <maneesh.jain@samsung.com>
src/wifi-power.c

index 9c64730..988d6ce 100755 (executable)
@@ -151,39 +151,6 @@ static int __execute_supplicant(gboolean enable)
        return 0;
 }
 
-static int _start_supplicant(void)
-{
-       GVariant *reply = NULL;
-       GVariant *params = NULL;
-
-       params = g_variant_new("(ss)","wpasupplicant.service", "replace");
-
-       reply = netconfig_invoke_dbus_method("org.freedesktop.systemd1", "/org/freedesktop/systemd1", "org.freedesktop.systemd1.Manager", "StartUnit", params);
-       if (reply == NULL) {
-               ERR("Fail to _start_supplicant");
-               return -1;
-       } else {
-               g_variant_unref(reply);
-       }
-
-       return 0;
-}
-
-static int _stop_supplicant(void)
-{
-       GVariant *reply = NULL;
-
-       reply = netconfig_invoke_dbus_method("fi.w1.wpa_supplicant1", "/fi/w1/wpa_supplicant1", "fi.w1.wpa_supplicant1", "Terminate", NULL);
-       if (reply == NULL) {
-               ERR("Fail to _stop_supplicant");
-               return -1;
-       } else {
-               g_variant_unref(reply);
-       }
-
-       return 0;
-}
-
 #if defined TIZEN_P2P_ENABLE && defined WLAN_CONCURRENT_MODE
 static int __netconfig_p2p_supplicant(gboolean enable)
 {