diff options
author | Treehugger Robot <treehugger-gerrit@google.com> | 2020-12-14 14:30:10 +0000 |
---|---|---|
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2020-12-14 14:30:10 +0000 |
commit | 5fb746bc9fb2f5529f61aae855d4c446ce525ff0 (patch) | |
tree | f30f2ea680a2f079d4da89dd918a0a889a6d5155 /security/keymint/support/authorization_set.cpp | |
parent | 6c1dd664422552206f3d3f119ede5b437e66e42b (diff) | |
parent | 1d3f85e89195755bb817c91d13fdb40f268f79b7 (diff) |
Merge "Various cleanups"
Diffstat (limited to 'security/keymint/support/authorization_set.cpp')
-rw-r--r-- | security/keymint/support/authorization_set.cpp | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/security/keymint/support/authorization_set.cpp b/security/keymint/support/authorization_set.cpp index aa9638f256..eaacd1f536 100644 --- a/security/keymint/support/authorization_set.cpp +++ b/security/keymint/support/authorization_set.cpp @@ -76,16 +76,6 @@ void AuthorizationSet::Subtract(const AuthorizationSet& other) { } } -void AuthorizationSet::Filter(std::function<bool(const KeyParameter&)> doKeep) { - std::vector<KeyParameter> result; - for (auto& param : data_) { - if (doKeep(param)) { - result.push_back(std::move(param)); - } - } - std::swap(data_, result); -} - KeyParameter& AuthorizationSet::operator[](int at) { return data_[at]; } |