From 00144e8de35dbdc3a477862ef8d92a6fa8191142 Mon Sep 17 00:00:00 2001 From: Bartosz Fabianowski Date: Thu, 11 Feb 2016 11:13:55 +0100 Subject: [PATCH] Remove wifiConfiguration.isVisibleToUser() This method seemed like a good idea at the time (quickly check whether a network configuration is visible to a given user). However, once managed profiles come into play, this simple method is no longer appropriate. There is a more comprehensive replacement at com.android.server.wifi.WifiConfigurationUtil.isVisibleToAnyProfile() now and this method here can go. BUG:26867426 Change-Id: Ia66aa6f74003a16eca24c5088d3aba8e0c9f8140 --- wifi/java/android/net/wifi/WifiConfiguration.java | 5 ----- 1 file changed, 5 deletions(-) diff --git a/wifi/java/android/net/wifi/WifiConfiguration.java b/wifi/java/android/net/wifi/WifiConfiguration.java index 5d94e53eaf271..8f4f4c702baa6 100644 --- a/wifi/java/android/net/wifi/WifiConfiguration.java +++ b/wifi/java/android/net/wifi/WifiConfiguration.java @@ -1754,11 +1754,6 @@ public class WifiConfiguration implements Parcelable { return 0; } - /** @hide */ - public boolean isVisibleToUser(int userId) { - return shared || (UserHandle.getUserId(creatorUid) == userId); - } - /** @hide */ public void setPasspointManagementObjectTree(String passpointManagementObjectTree) { mPasspointManagementObjectTree = passpointManagementObjectTree;