From f3bcadd173c368efbfdbe8900bf4bdb31bb5ac9c Mon Sep 17 00:00:00 2001 From: Andrew Morrow Date: Mon, 11 Aug 2014 15:12:00 -0400 Subject: SERVER-14839 Remove unused BSONObj::[vV]als methods --- src/mongo/bson/bsonobj.cpp | 45 --------------------------------------------- 1 file changed, 45 deletions(-) (limited to 'src/mongo/bson/bsonobj.cpp') 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 - void BSONObj::Vals(std::vector& v) const { - BSONObjIterator i(*this); - while( i.more() ) { - T t; - i.next().Val(t); - v.push_back(t); - } - } - template - void BSONObj::Vals(std::list& v) const { - BSONObjIterator i(*this); - while( i.more() ) { - T t; - i.next().Val(t); - v.push_back(t); - } - } - - template - void BSONObj::vals(std::vector& v) const { - BSONObjIterator i(*this); - while( i.more() ) { - try { - T t; - i.next().Val(t); - v.push_back(t); - } - catch(...) { } - } - } - template - void BSONObj::vals(std::list& v) const { - BSONObjIterator i(*this); - while( i.more() ) { - try { - T t; - i.next().Val(t); - v.push_back(t); - } - catch(...) { } - } - } - - } // namespace mongo -- cgit v1.2.1