locksettings: remove unused code to read/write LEGACY_LOCK_PATTERN_ENABLED

This has been unused code since "Remove LegacyLockPattern migration"
(http://ag/17983989).

Bug: 216638987
Change-Id: I982d912bee12792074c12a3064aba4188803233d
This commit is contained in:
Eric Biggers
2023-01-13 21:48:10 +00:00
parent 558e2cf134
commit 5a0181c4ee
2 changed files with 0 additions and 23 deletions

View File

@@ -76,11 +76,6 @@ public class LockPatternUtils {
private static final String TAG = "LockPatternUtils";
private static final boolean FRP_CREDENTIAL_ENABLED = true;
/**
* The key to identify when the lock pattern enabled flag is being accessed for legacy reasons.
*/
public static final String LEGACY_LOCK_PATTERN_ENABLED = "legacy_lock_pattern_enabled";
/**
* The interval of the countdown for showing progress of the lockout.
*/
@@ -952,19 +947,6 @@ public class LockPatternUtils {
return type == CREDENTIAL_TYPE_PATTERN;
}
@Deprecated
public boolean isLegacyLockPatternEnabled(int userId) {
// Note: this value should default to {@code true} to avoid any reset that might result.
// We must use a special key to read this value, since it will by default return the value
// based on the new logic.
return getBoolean(LEGACY_LOCK_PATTERN_ENABLED, true, userId);
}
@Deprecated
public void setLegacyLockPatternEnabled(int userId) {
setBoolean(Settings.Secure.LOCK_PATTERN_ENABLED, true, userId);
}
/**
* @return Whether the visible pattern is enabled.
*/

View File

@@ -533,11 +533,6 @@ class LockSettingsStorage {
if (userId == USER_FRP) {
return null;
}
if (LockPatternUtils.LEGACY_LOCK_PATTERN_ENABLED.equals(key)) {
key = Settings.Secure.LOCK_PATTERN_ENABLED;
}
return readKeyValue(key, defaultValue, userId);
}