summaryrefslogtreecommitdiff
path: root/src/mongo/db/auth/user_name.h
diff options
context:
space:
mode:
authorSpencer T Brody <spencer@10gen.com>2013-06-26 12:54:12 -0400
committerSpencer T Brody <spencer@10gen.com>2013-06-26 12:54:12 -0400
commitbecf20f90e77996c3652fd9cb4f19d0147c17840 (patch)
tree0d7bff59037110ea638a7a8f4a583dd510ca4433 /src/mongo/db/auth/user_name.h
parent3d6e8936938e5aef274ea97ee385f062a9b1bcdf (diff)
downloadmongo-becf20f90e77996c3652fd9cb4f19d0147c17840.tar.gz
Move hash function for UserNames to separate header file to improve compilation times
Diffstat (limited to 'src/mongo/db/auth/user_name.h')
-rw-r--r--src/mongo/db/auth/user_name.h10
1 files changed, 0 insertions, 10 deletions
diff --git a/src/mongo/db/auth/user_name.h b/src/mongo/db/auth/user_name.h
index 7f1ef44b301..6efa7b695ed 100644
--- a/src/mongo/db/auth/user_name.h
+++ b/src/mongo/db/auth/user_name.h
@@ -18,7 +18,6 @@
#include <string>
#include "mongo/base/string_data.h"
-#include "mongo/platform/hash_namespace.h"
namespace mongo {
@@ -70,12 +69,3 @@ namespace mongo {
}
} // namespace mongo
-
-// Define hash function for UserNames so they can be keys in std::unordered_map
-MONGO_HASH_NAMESPACE_START
- template <> struct hash<mongo::UserName> {
- size_t operator()(const mongo::UserName& pname) const {
- return hash<std::string>()(pname.getFullName());
- }
- };
-MONGO_HASH_NAMESPACE_END