Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 116387c6 authored by Thiemo Nagel's avatar Thiemo Nagel
Browse files

Remove unsed failedAttemptWarning in reportFailedUnlockAttempt().

Change-Id: I6ca76f6ebe84e04f84161c7fc06d1e2443f7bbfe
parent e94787a0
Loading
Loading
Loading
Loading
+0 −3
Original line number Diff line number Diff line
@@ -266,9 +266,6 @@ public class KeyguardSecurityContainer extends FrameLayout implements KeyguardSe
        final int failedAttemptsBeforeWipe =
                dpm.getMaximumFailedPasswordsForWipe(null, currentUser);

        final int failedAttemptWarning = LockPatternUtils.FAILED_ATTEMPTS_BEFORE_RESET
                - LockPatternUtils.FAILED_ATTEMPTS_BEFORE_TIMEOUT;

        final int remainingBeforeWipe = failedAttemptsBeforeWipe > 0 ?
                (failedAttemptsBeforeWipe - failedAttempts)
                : Integer.MAX_VALUE; // because DPM returns 0 if no restriction