Skip to content

Commit e9e698a

Browse files
committed
remove unused noOpen option
1 parent 485a242 commit e9e698a

File tree

2 files changed

+0
-17
lines changed

2 files changed

+0
-17
lines changed

lib/mongodb/db.js

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2104,11 +2104,6 @@ var _finishConnecting = function(serverConfig, object, options, callback) {
21042104
// Set up the db options
21052105
var db = new Db(object.dbName, serverConfig, object.db_options);
21062106

2107-
if(options.noOpen) {
2108-
// don't open the connection
2109-
return callback(null, db)
2110-
}
2111-
21122107
// Open the db
21132108
db.open(function(err, db){
21142109
if(err == null && object.auth){

test/connect_test.js

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -73,18 +73,6 @@ exports.testConnectServerOptions = function(test) {
7373
}));
7474
};
7575

76-
/**
77-
* @ignore
78-
*/
79-
exports.testConnectWithNoOpenOption = function(test) {
80-
connect(clientUrl,
81-
{ noOpen: true },
82-
connectionTester(test, 'testConnectWithNoOpenOption', function(db) {
83-
test.ok(db);
84-
test.done();
85-
}));
86-
};
87-
8876
/**
8977
* @ignore
9078
*/

0 commit comments

Comments
 (0)