diff options
author | Mathias Stearn <mathias@10gen.com> | 2012-07-17 17:18:49 -0400 |
---|---|---|
committer | Mathias Stearn <mathias@10gen.com> | 2012-07-20 18:16:38 -0400 |
commit | 94a0643a83b063678907c767a62066679f618981 (patch) | |
tree | f5669a35675337923ffcf1207ebdc5322e8b8d8b /src/mongo/db/pipeline/document.cpp | |
parent | 3e81903a1c824560c3cb77f7b6d6d6cd24860d74 (diff) | |
download | mongo-94a0643a83b063678907c767a62066679f618981.tar.gz |
Rip out manageDependecies and DependencyTracker stuff SERVER-4644
Diffstat (limited to 'src/mongo/db/pipeline/document.cpp')
-rwxr-xr-x | src/mongo/db/pipeline/document.cpp | 16 |
1 files changed, 4 insertions, 12 deletions
diff --git a/src/mongo/db/pipeline/document.cpp b/src/mongo/db/pipeline/document.cpp index 1b856c86476..e34af40b8dd 100755 --- a/src/mongo/db/pipeline/document.cpp +++ b/src/mongo/db/pipeline/document.cpp @@ -17,7 +17,6 @@ #include "pch.h" #include <boost/functional/hash.hpp> #include "db/jsobj.h" -#include "db/pipeline/dependency_tracker.h" #include "db/pipeline/document.h" #include "db/pipeline/value.h" #include "util/mongoutils/str.h" @@ -27,17 +26,11 @@ namespace mongo { string Document::idName("_id"); - intrusive_ptr<Document> Document::createFromBsonObj( - BSONObj *pBsonObj, const DependencyTracker *pDependencies) { - intrusive_ptr<Document> pDocument( - new Document(pBsonObj, pDependencies)); - return pDocument; + intrusive_ptr<Document> Document::createFromBsonObj(BSONObj* pBsonObj) { + return new Document(pBsonObj); } - Document::Document(BSONObj *pBsonObj, - const DependencyTracker *pDependencies): - vFieldName(), - vpValue() { + Document::Document(BSONObj* pBsonObj) { const int fields = pBsonObj->nFields(); vFieldName.reserve(fields); vpValue.reserve(fields); @@ -46,7 +39,6 @@ namespace mongo { BSONElement bsonElement(bsonIterator.next()); string fieldName(bsonElement.fieldName()); - // LATER check pDependencies // LATER grovel through structures??? intrusive_ptr<const Value> pValue( Value::createFromBsonElement(&bsonElement)); @@ -56,7 +48,7 @@ namespace mongo { } } - void Document::toBson(BSONObjBuilder *pBuilder) const { + void Document::toBson(BSONObjBuilder* pBuilder) const { const size_t n = vFieldName.size(); for(size_t i = 0; i < n; ++i) vpValue[i]->addToBsonObj(pBuilder, vFieldName[i]); |