diff options
author | Shawn Willden <swillden@google.com> | 2020-12-09 14:18:44 -0700 |
---|---|---|
committer | Shawn Willden <swillden@google.com> | 2020-12-13 23:48:10 -0700 |
commit | 1d3f85e89195755bb817c91d13fdb40f268f79b7 (patch) | |
tree | d7fb69f8b2211de207e30611c7c3156a9a8b19c9 /security/keymint/support/authorization_set.cpp | |
parent | 08a7e43e78b7b2715f0153e812297e98245916b3 (diff) |
Various cleanups
Mostly just removal of old-style #include guards in favor of #pragm
once, reorganization of header includes, correction of copyright
years, etc.
Test: VtsAidlKeyMintTargetTest
Change-Id: I070584ecec550a2f133b1c19f36f99e7b5544e7c
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]; } |