summaryrefslogtreecommitdiff
path: root/src/mongo/bson/bsonobj.cpp
diff options
context:
space:
mode:
authorDavid Storch <david.storch@10gen.com>2016-09-06 18:16:43 -0400
committerDavid Storch <david.storch@10gen.com>2016-09-09 15:05:13 -0400
commit613134ad5960767276df350db1f90cc919225dd5 (patch)
treeb3af405211503717a2524813237734b3af2613a8 /src/mongo/bson/bsonobj.cpp
parentf6397011fa6f607a80a6bde1408bf6afddaf20a7 (diff)
downloadmongo-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.cpp10
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);