Delete unused function _net_dbus_get_wifi_state() 24/238224/1
authorRahul Jain <rahul.jain@samsung.com>
Thu, 9 Jul 2020 11:33:00 +0000 (17:03 +0530)
committerRahul Jain <rahul.jain@samsung.com>
Thu, 9 Jul 2020 11:34:08 +0000 (17:04 +0530)
Change-Id: If243af62329a90e3a5fe9f6f34394f962207bb32

include/network_dbus.h
src/network_dbus.c

index 96d5072..9f831b8 100755 (executable)
@@ -92,7 +92,6 @@ int _net_dbus_set_agent_wps_pbc_and_connect(const char *profilename);
 int _net_dbus_set_agent_wps_pin_and_connect(
                const char *wps_pin, const char *profilename);
 int _net_dbus_get_tech_status(net_tech_info_s* tech_status);
-int _net_dbus_get_wifi_state(char **wifi_state);
 int _net_dbus_connect_service(const net_wifi_connect_service_info_t* wifi_connection_info);
 int _net_dbus_get_preferred_ipv6_address(const char *profilename, char **address);
 int _net_dbus_set_profile_ipv4(net_profile_info_s* prof_info, char* profile_name);
index d4b52a8..99c8334 100755 (executable)
@@ -1035,38 +1035,6 @@ done:
        return Error;
 }
 
-int _net_dbus_get_wifi_state(char **wifi_state)
-{
-       __NETWORK_FUNC_ENTER__;
-
-       net_err_e Error = NET_ERR_NONE;
-       GVariant *message = NULL;
-       const char *method = "GetWifiState";
-
-       if (NULL == wifi_state) {
-                       WIFI_LOG(WIFI_ERROR, "Invalid Parameter\n"); //LCOV_EXCL_LINE
-                       __NETWORK_FUNC_EXIT__; //LCOV_EXCL_LINE
-                       return NET_ERR_INVALID_PARAM; //LCOV_EXCL_LINE
-       }
-
-       message = _net_invoke_dbus_method(
-                       NETCONFIG_SERVICE, NETCONFIG_WIFI_PATH,
-                       NETCONFIG_WIFI_INTERFACE, method, NULL, &Error);
-
-       if (message == NULL) {
-               WIFI_LOG(WIFI_ERROR, "Failed to get wifi state\n"); //LCOV_EXCL_LINE
-               __NETWORK_FUNC_EXIT__; //LCOV_EXCL_LINE
-               return Error; //LCOV_EXCL_LINE
-       }
-
-       g_variant_get(message, "(s)", wifi_state);
-       g_variant_unref(message);
-
-       __NETWORK_FUNC_EXIT__;
-
-       return Error;
-}
-
 //LCOV_EXCL_START
 int _net_dbus_set_eap_config_fields_and_connect(
                const net_wifi_connect_service_info_t *wifi_info,