summaryrefslogtreecommitdiff
path: root/db/dbhelpers.cpp
diff options
context:
space:
mode:
authorAaron <aaron@10gen.com>2009-05-19 10:55:13 -0400
committerAaron <aaron@10gen.com>2009-05-19 10:55:13 -0400
commit206a330b50fbdce63551681c49c255b3df2e2322 (patch)
tree3c2c6b56cedc2c0317eda0fb9ef725c296b66b1b /db/dbhelpers.cpp
parentb039c1f21954405b21a9b4687c9c713a26ed2f02 (diff)
downloadmongo-206a330b50fbdce63551681c49c255b3df2e2322.tar.gz
remove outdated 'mongod <arg>' style tests, add mongod msg test to smokeClient
Diffstat (limited to 'db/dbhelpers.cpp')
-rw-r--r--db/dbhelpers.cpp16
1 files changed, 0 insertions, 16 deletions
diff --git a/db/dbhelpers.cpp b/db/dbhelpers.cpp
index 3941dd591c9..e09862483c4 100644
--- a/db/dbhelpers.cpp
+++ b/db/dbhelpers.cpp
@@ -100,22 +100,6 @@ namespace mongo {
return true;
}
- int test2_dbh() {
- dblock lk;
- DBContext c("dwight.foo");
- BSONObj q = fromjson("{\"x\":9}");
- BSONObj result;
-
- {
- BSONObj kp = fromjson("{\"x\":1}");
- Helpers::ensureIndex("dwight.foo", kp, false, "x_1");
- }
-
- cout << Helpers::findOne("dwight.foo", q, result, true) << endl;
- cout << result.toString() << endl;
- return 0;
- }
-
/* Get the first object from a collection. Generally only useful if the collection
only ever has a single object -- which is a "singleton collection.