diff options
Diffstat (limited to 'src/mongo/db/auth/privilege_parser.cpp')
-rw-r--r-- | src/mongo/db/auth/privilege_parser.cpp | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/src/mongo/db/auth/privilege_parser.cpp b/src/mongo/db/auth/privilege_parser.cpp index 18acabd2611..88dfbf961b0 100644 --- a/src/mongo/db/auth/privilege_parser.cpp +++ b/src/mongo/db/auth/privilege_parser.cpp @@ -314,20 +314,6 @@ namespace mongo { } - void ParsedPrivilege::cloneTo(ParsedPrivilege* other) const { - other->clear(); - - for(std::vector<string>::const_iterator it = _actions.begin(); - it != _actions.end(); - ++it) { - other->addToActions(*it); - } - other->_isActionsSet = _isActionsSet; - - _resource.cloneTo(&other->_resource); - other->_isResourceSet = _isResourceSet; - } - std::string ParsedPrivilege::toString() const { return toBSON().toString(); } |