summaryrefslogtreecommitdiff
path: root/src/mongo/bson/bsonobj.cpp
diff options
context:
space:
mode:
authorAndrew Morrow <acm@mongodb.com>2014-08-11 15:12:00 -0400
committerAndrew Morrow <acm@mongodb.com>2014-08-12 13:27:21 -0400
commitf3bcadd173c368efbfdbe8900bf4bdb31bb5ac9c (patch)
tree0303ca4bafc5d21963ad8638200a514d13caf51a /src/mongo/bson/bsonobj.cpp
parentf8097fb0f8c4c52bbf117e5d5aaa16f9008937c1 (diff)
downloadmongo-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.cpp45
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