summaryrefslogtreecommitdiff
path: root/src/mongo/client/dbclient.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/client/dbclient.cpp')
-rw-r--r--src/mongo/client/dbclient.cpp9
1 files changed, 0 insertions, 9 deletions
diff --git a/src/mongo/client/dbclient.cpp b/src/mongo/client/dbclient.cpp
index 92eb63a29b8..989deeffc7f 100644
--- a/src/mongo/client/dbclient.cpp
+++ b/src/mongo/client/dbclient.cpp
@@ -583,15 +583,6 @@ list<string> DBClientWithCommands::getDatabaseNames() {
return names;
}
-list<string> DBClientWithCommands::getCollectionNames(const string& db) {
- list<BSONObj> infos = getCollectionInfos(db);
- list<string> names;
- for (list<BSONObj>::iterator it = infos.begin(); it != infos.end(); ++it) {
- names.push_back(db + "." + (*it)["name"].valuestr());
- }
- return names;
-}
-
list<BSONObj> DBClientWithCommands::getCollectionInfos(const string& db, const BSONObj& filter) {
list<BSONObj> infos;