diff options
author | David Storch <david.storch@10gen.com> | 2016-09-06 18:16:43 -0400 |
---|---|---|
committer | David Storch <david.storch@10gen.com> | 2016-09-09 15:05:13 -0400 |
commit | 613134ad5960767276df350db1f90cc919225dd5 (patch) | |
tree | b3af405211503717a2524813237734b3af2613a8 /src/mongo/bson/bsonobj.cpp | |
parent | f6397011fa6f607a80a6bde1408bf6afddaf20a7 (diff) | |
download | mongo-613134ad5960767276df350db1f90cc919225dd5.tar.gz |
SERVER-23990 move BSONObj/BSONElement hashing into {BSONObj,BSONElement}::ComparatorInterface
Diffstat (limited to 'src/mongo/bson/bsonobj.cpp')
-rw-r--r-- | src/mongo/bson/bsonobj.cpp | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/src/mongo/bson/bsonobj.cpp b/src/mongo/bson/bsonobj.cpp index 0d965e364a5..d9af2c706a9 100644 --- a/src/mongo/bson/bsonobj.cpp +++ b/src/mongo/bson/bsonobj.cpp @@ -31,8 +31,6 @@ #include "mongo/db/jsobj.h" -#include <boost/functional/hash.hpp> - #include "mongo/base/data_range.h" #include "mongo/bson/bson_validate.h" #include "mongo/db/json.h" @@ -184,14 +182,6 @@ int BSONObj::woCompare(const BSONObj& r, return -1; } -size_t BSONObj::Hasher::operator()(const BSONObj& obj) const { - size_t hash = 0; - BSONForEach(elem, obj) { - boost::hash_combine(hash, BSONElement::Hasher()(elem)); - } - return hash; -} - bool BSONObj::isPrefixOf(const BSONObj& otherObj, const BSONElement::ComparatorInterface& eltCmp) const { BSONObjIterator a(*this); |