diff options
author | Nick Zolnierz <nicholas.zolnierz@mongodb.com> | 2018-07-26 16:00:20 -0400 |
---|---|---|
committer | Nick Zolnierz <nicholas.zolnierz@mongodb.com> | 2018-08-02 12:23:03 -0400 |
commit | afbe688f0f18c5cb474fb1bcd933d6e06c0c5291 (patch) | |
tree | a7c1a3192f335c5e2947e395159eaa03782c3a50 /src/mongo/bson/bsonobj.cpp | |
parent | afaf46687eb3930ddbfc8b528bd68295b6a09676 (diff) | |
download | mongo-afbe688f0f18c5cb474fb1bcd933d6e06c0c5291.tar.gz |
SERVER-35896: Support 'replaceDocuments' mode in $out
Diffstat (limited to 'src/mongo/bson/bsonobj.cpp')
-rw-r--r-- | src/mongo/bson/bsonobj.cpp | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/src/mongo/bson/bsonobj.cpp b/src/mongo/bson/bsonobj.cpp index 244d4ff5c67..ff03f9aac79 100644 --- a/src/mongo/bson/bsonobj.cpp +++ b/src/mongo/bson/bsonobj.cpp @@ -271,20 +271,6 @@ BSONElement BSONObj::getFieldUsingIndexNames(StringData fieldName, const BSONObj return BSONElement(); } -/* grab names of all the fields in this object */ -int BSONObj::getFieldNames(set<string>& fields) const { - int n = 0; - BSONObjIterator i(*this); - while (i.moreWithEOO()) { - BSONElement e = i.next(); - if (e.eoo()) - break; - fields.insert(e.fieldName()); - n++; - } - return n; -} - /* note: addFields always adds _id even if not specified returns n added not counting _id unless requested. */ |