From 1d3f85e89195755bb817c91d13fdb40f268f79b7 Mon Sep 17 00:00:00 2001 From: Shawn Willden Date: Wed, 9 Dec 2020 14:18:44 -0700 Subject: 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 --- security/keymint/support/authorization_set.cpp | 10 ---------- 1 file changed, 10 deletions(-) (limited to 'security/keymint/support/authorization_set.cpp') 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 doKeep) { - std::vector 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]; } -- cgit v1.2.3