summaryrefslogtreecommitdiffstats
path: root/service/java/com/android/server/wifi/WifiConfigStore.java
diff options
context:
space:
mode:
authorRoshan Pius <rpius@google.com>2016-04-13 09:10:51 -0700
committerRoshan Pius <rpius@google.com>2016-04-13 09:15:33 -0700
commit329b3a9a9bc32d14649e91c15876ea7f95f148d1 (patch)
tree7cdffff3dd39bf78072e2beae69c950fac484486 /service/java/com/android/server/wifi/WifiConfigStore.java
parent604285d676078e9d0d5c7944770bdba36144363e (diff)
downloadandroid_frameworks_opt_net_wifi-329b3a9a9bc32d14649e91c15876ea7f95f148d1.tar.gz
android_frameworks_opt_net_wifi-329b3a9a9bc32d14649e91c15876ea7f95f148d1.tar.bz2
android_frameworks_opt_net_wifi-329b3a9a9bc32d14649e91c15876ea7f95f148d1.zip
WifiConfigManager: Remove dead code
BUG: 28164778 Change-Id: I1e09b8039dbf7d220fd699b5be3b29330d02a305
Diffstat (limited to 'service/java/com/android/server/wifi/WifiConfigStore.java')
-rw-r--r--service/java/com/android/server/wifi/WifiConfigStore.java40
1 files changed, 0 insertions, 40 deletions
diff --git a/service/java/com/android/server/wifi/WifiConfigStore.java b/service/java/com/android/server/wifi/WifiConfigStore.java
index 8b4535ebf..e8b91e3fa 100644
--- a/service/java/com/android/server/wifi/WifiConfigStore.java
+++ b/service/java/com/android/server/wifi/WifiConfigStore.java
@@ -934,25 +934,6 @@ public class WifiConfigStore {
}
/**
- * Enable a network in wpa_supplicant.
- *
- * @param config Config corresponding to the network.
- * @return true if successful, false otherwise.
- */
- public boolean enableNetwork(WifiConfiguration config) {
- if (config == null) {
- return false;
- }
- if (VDBG) localLog("enableNetwork: " + config.networkId);
- if (!mWifiNative.enableNetworkWithoutConnect(config.networkId)) {
- loge("Enable network in wpa_supplicant failed on " + config.networkId);
- return false;
- }
- config.status = Status.ENABLED;
- return true;
- }
-
- /**
* Select a network in wpa_supplicant.
*
* @param config Config corresponding to the network.
@@ -1065,27 +1046,6 @@ public class WifiConfigStore {
}
/**
- * Enables all the networks in the provided list in wpa_supplicant.
- *
- * @param configs Collection of configs which needs to be enabled.
- * @return true if successful, false otherwise.
- */
- public boolean enableAllNetworks(Collection<WifiConfiguration> configs) {
- if (VDBG) localLog("enableAllNetworksNative");
- boolean networkEnabled = false;
- for (WifiConfiguration config : configs) {
- if (config != null && !config.ephemeral
- && !config.getNetworkSelectionStatus().isNetworkEnabled()) {
- if (enableNetwork(config)) {
- networkEnabled = true;
- }
- }
- }
- saveConfig();
- return networkEnabled;
- }
-
- /**
* Disables all the networks in the provided list in wpa_supplicant.
*
* @param configs Collection of configs which needs to be enabled.