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:
@@ -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.
|
||||
*/
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user