From 5677fc5d8e5bf150891e9da3b8d6cd2c1ddfa6d7 Mon Sep 17 00:00:00 2001 From: Rahul Jain Date: Thu, 9 Jul 2020 17:03:00 +0530 Subject: [PATCH] Delete unused function _net_dbus_get_wifi_state() Change-Id: If243af62329a90e3a5fe9f6f34394f962207bb32 --- include/network_dbus.h | 1 - src/network_dbus.c | 32 -------------------------------- 2 files changed, 33 deletions(-) diff --git a/include/network_dbus.h b/include/network_dbus.h index 96d5072..9f831b8 100755 --- a/include/network_dbus.h +++ b/include/network_dbus.h @@ -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); diff --git a/src/network_dbus.c b/src/network_dbus.c index d4b52a8..99c8334 100755 --- a/src/network_dbus.c +++ b/src/network_dbus.c @@ -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, -- 2.7.4