diff --git a/src/com/android/settings/wifi/WifiEntryShell.java b/src/com/android/settings/wifi/WifiEntryShell.java index 7c6fc480ba6..385cca16f76 100644 --- a/src/com/android/settings/wifi/WifiEntryShell.java +++ b/src/com/android/settings/wifi/WifiEntryShell.java @@ -23,7 +23,6 @@ import com.android.wifitrackerlib.WifiEntry; * all the unavalable {@link AccessPoint} methods & constants. * * TODO(b/143326832): Replace all methods & constants with WifiEntry version when it's available. - * TODO(b/143326832): How about AccessPoint#getSettingsSummary(boolean convertSavedAsDisconnected)? */ public class WifiEntryShell { public WifiEntryShell(){}; @@ -47,41 +46,4 @@ public class WifiEntryShell { * Upper bound on the 5.0 GHz (802.11a/h/j/n/ac) WLAN channels */ public static final int HIGHER_FREQ_5GHZ = 5900; - - // Passpoint methods - - /** - * Mapping of the corresponding {@link AccessPoint} method - */ - public static boolean isExpired(WifiEntry wifiEntry) { - return false; - } - - /** - * Mapping of the corresponding {@link AccessPoint} method - */ - public static boolean isPasspointConfigurationR1(WifiEntry wifiEntry) { - return false; - } - - /** - * Mapping of the corresponding {@link AccessPoint} method - */ - public static boolean isPasspointConfigurationOsuProvisioned(WifiEntry wifiEntry) { - return false; - } - - /** - * Mapping of the corresponding {@link AccessPoint} method - */ - public static boolean isOsuProvider(WifiEntry wifiEntry) { - return false; - } - - /** - * Mapping of the corresponding {@link AccessPoint} method - */ - public static String getPasspointFqdn(WifiEntry wifiEntry) { - return "Fake passpoint FQDN"; - } } diff --git a/src/com/android/settings/wifi/details2/WifiDetailPreferenceController2.java b/src/com/android/settings/wifi/details2/WifiDetailPreferenceController2.java index b5813cff3e9..350c0add99d 100644 --- a/src/com/android/settings/wifi/details2/WifiDetailPreferenceController2.java +++ b/src/com/android/settings/wifi/details2/WifiDetailPreferenceController2.java @@ -537,7 +537,7 @@ public class WifiDetailPreferenceController2 extends AbstractPreferenceControlle } private void refreshSsid() { - if (mWifiEntry.isSubscription() || WifiEntryShell.isOsuProvider(mWifiEntry)) { + if (mWifiEntry.isSubscription()) { mSsidPref.setVisible(true); mSsidPref.setSummary(mWifiEntry.getTitle()); } else { @@ -743,8 +743,7 @@ public class WifiDetailPreferenceController2 extends AbstractPreferenceControlle try { mWifiEntry.forget(this); } catch (RuntimeException e) { - Log.e(TAG, "Failed to remove Passpoint configuration for " - + WifiEntryShell.getPasspointFqdn(mWifiEntry)); + Log.e(TAG, "Failed to remove Passpoint configuration: " + e); } mMetricsFeatureProvider.action( mFragment.getActivity(), SettingsEnums.ACTION_WIFI_FORGET);