summaryrefslogtreecommitdiff
path: root/src/mongo/client/dbclient_connection.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/client/dbclient_connection.cpp')
-rw-r--r--src/mongo/client/dbclient_connection.cpp17
1 files changed, 0 insertions, 17 deletions
diff --git a/src/mongo/client/dbclient_connection.cpp b/src/mongo/client/dbclient_connection.cpp
index 6e643b75ad0..b50487dcbfa 100644
--- a/src/mongo/client/dbclient_connection.cpp
+++ b/src/mongo/client/dbclient_connection.cpp
@@ -47,7 +47,6 @@
#include "mongo/bson/util/bson_extract.h"
#include "mongo/bson/util/builder.h"
#include "mongo/client/authenticate.h"
-#include "mongo/client/constants.h"
#include "mongo/client/dbclient_cursor.h"
#include "mongo/client/replica_set_monitor.h"
#include "mongo/client/sasl_client_authenticate.h"
@@ -787,22 +786,6 @@ bool DBClientConnection::call(Message& toSend,
return true;
}
-void DBClientConnection::checkResponse(const std::vector<BSONObj>& batch,
- bool networkError,
- bool* retry,
- string* host) {
- /* check for errors. the only one we really care about at
- * this stage is "not master"
- */
-
- *retry = false;
- *host = _serverAddress.toString();
-
- if (!_parentReplSetName.empty() && !batch.empty()) {
- handleNotPrimaryResponse(batch[0], "$err");
- }
-}
-
void DBClientConnection::setParentReplSetName(const string& replSetName) {
_parentReplSetName = replSetName;
}