diff options
author | Andrew Morrow <acm@mongodb.com> | 2014-08-11 15:12:00 -0400 |
---|---|---|
committer | Andrew Morrow <acm@mongodb.com> | 2014-08-12 13:27:21 -0400 |
commit | f3bcadd173c368efbfdbe8900bf4bdb31bb5ac9c (patch) | |
tree | 0303ca4bafc5d21963ad8638200a514d13caf51a /src/mongo/bson/bsonobj.cpp | |
parent | f8097fb0f8c4c52bbf117e5d5aaa16f9008937c1 (diff) | |
download | mongo-f3bcadd173c368efbfdbe8900bf4bdb31bb5ac9c.tar.gz |
SERVER-14839 Remove unused BSONObj::[vV]als methods
Diffstat (limited to 'src/mongo/bson/bsonobj.cpp')
-rw-r--r-- | src/mongo/bson/bsonobj.cpp | 45 |
1 files changed, 0 insertions, 45 deletions
diff --git a/src/mongo/bson/bsonobj.cpp b/src/mongo/bson/bsonobj.cpp index 0fc1a2461dd..209142a9921 100644 --- a/src/mongo/bson/bsonobj.cpp +++ b/src/mongo/bson/bsonobj.cpp @@ -820,49 +820,4 @@ namespace mongo { return s; } - template <class T> - void BSONObj::Vals(std::vector<T>& v) const { - BSONObjIterator i(*this); - while( i.more() ) { - T t; - i.next().Val(t); - v.push_back(t); - } - } - template <class T> - void BSONObj::Vals(std::list<T>& v) const { - BSONObjIterator i(*this); - while( i.more() ) { - T t; - i.next().Val(t); - v.push_back(t); - } - } - - template <class T> - void BSONObj::vals(std::vector<T>& v) const { - BSONObjIterator i(*this); - while( i.more() ) { - try { - T t; - i.next().Val(t); - v.push_back(t); - } - catch(...) { } - } - } - template <class T> - void BSONObj::vals(std::list<T>& v) const { - BSONObjIterator i(*this); - while( i.more() ) { - try { - T t; - i.next().Val(t); - v.push_back(t); - } - catch(...) { } - } - } - - } // namespace mongo |