diff options
author | Erwin Pe <erwin.pe@mongodb.com> | 2021-08-02 18:42:23 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2021-08-02 19:27:38 +0000 |
commit | d206fa75eca0b9ce4bd41a493a2edf6a2e9166c8 (patch) | |
tree | 37fb3ae6afd8cf4d4e5a14ffcecb0d4f50640b66 /src/mongo/db/auth/action_set.cpp | |
parent | 8fcfd9dd7015a054887fa6ea9ecb3e1a9c6556c0 (diff) | |
download | mongo-d206fa75eca0b9ce4bd41a493a2edf6a2e9166c8.tar.gz |
SERVER-58827 Delete unused method ActionSet::parseActionSetFromString
Diffstat (limited to 'src/mongo/db/auth/action_set.cpp')
-rw-r--r-- | src/mongo/db/auth/action_set.cpp | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/src/mongo/db/auth/action_set.cpp b/src/mongo/db/auth/action_set.cpp index 4744139df93..37a4ede2b0d 100644 --- a/src/mongo/db/auth/action_set.cpp +++ b/src/mongo/db/auth/action_set.cpp @@ -93,22 +93,6 @@ bool ActionSet::isSupersetOf(const ActionSet& other) const { return (_actions & other._actions) == other._actions; } -Status ActionSet::parseActionSetFromString(const std::string& actionsString, ActionSet* result) { - std::vector<std::string> actionsList; - str::splitStringDelim(actionsString, &actionsList, ','); - std::vector<std::string> unrecognizedActions; - Status status = parseActionSetFromStringVector(actionsList, result, &unrecognizedActions); - invariant(status); - if (unrecognizedActions.empty()) { - return Status::OK(); - } - std::string unrecognizedActionsString; - str::joinStringDelim(unrecognizedActions, &unrecognizedActionsString, ','); - return Status(ErrorCodes::FailedToParse, - str::stream() << "Unrecognized action privilege strings: " - << unrecognizedActionsString); -} - Status ActionSet::parseActionSetFromStringVector(const std::vector<std::string>& actionsVector, ActionSet* result, std::vector<std::string>* unrecognizedActions) { |