summaryrefslogtreecommitdiff
path: root/identity
diff options
context:
space:
mode:
authorEric Biggers <ebiggers@google.com>2023-07-06 17:43:59 +0000
committerEric Biggers <ebiggers@google.com>2023-07-06 17:45:32 +0000
commit7eb4bf7c37bd23ca89e5af59a5a0aab66e872ffa (patch)
tree91b846f7391e21d76c9197c01ee20dcfa1249c59 /identity
parent6055d11ab9fb8db148041479b5ad2c359934a6f6 (diff)
downloadsecurity-7eb4bf7c37bd23ca89e5af59a5a0aab66e872ffa.tar.gz
credstore: remove unused variable
Test: mmm system/security Change-Id: I50f80bd823c9039eaa05cc724077f297af550462
Diffstat (limited to 'identity')
-rw-r--r--identity/CredentialData.cpp2
1 files changed, 0 insertions, 2 deletions
diff --git a/identity/CredentialData.cpp b/identity/CredentialData.cpp
index 803e6715..ecf2258c 100644
--- a/identity/CredentialData.cpp
+++ b/identity/CredentialData.cpp
@@ -527,7 +527,6 @@ AuthKeyData* CredentialData::findAuthKey_(bool allowUsingExhaustedKeys,
return nullptr;
}
- int n = 0;
for (AuthKeyData& data : authKeyDatas_) {
if (nowMilliSeconds > data.expirationDateMillisSinceEpoch) {
if (!allowUsingExpiredKeys) {
@@ -540,7 +539,6 @@ AuthKeyData* CredentialData::findAuthKey_(bool allowUsingExhaustedKeys,
candidate = &data;
}
}
- n++;
}
if (candidate == nullptr) {