summaryrefslogtreecommitdiff
path: root/src/mongo/dbtests/mock
diff options
context:
space:
mode:
authorKaloian Manassiev <kaloian.manassiev@mongodb.com>2015-12-30 18:03:52 -0500
committerKaloian Manassiev <kaloian.manassiev@mongodb.com>2016-01-05 09:51:27 -0500
commit3a1c3daecc80ffecba3a1ab9fc49e770ace3ea8f (patch)
treec721ab53313ba02e31bc40c414dfb0460f4394d4 /src/mongo/dbtests/mock
parentb3c4511611635692a46da21b7f9fc0e5131d1ef8 (diff)
downloadmongo-3a1c3daecc80ffecba3a1ab9fc49e770ace3ea8f.tar.gz
SERVER-22055 Remove unused client functionality
Diffstat (limited to 'src/mongo/dbtests/mock')
-rw-r--r--src/mongo/dbtests/mock/mock_dbclient_connection.cpp9
-rw-r--r--src/mongo/dbtests/mock/mock_dbclient_connection.h7
2 files changed, 2 insertions, 14 deletions
diff --git a/src/mongo/dbtests/mock/mock_dbclient_connection.cpp b/src/mongo/dbtests/mock/mock_dbclient_connection.cpp
index a9af06bd087..5dce3443100 100644
--- a/src/mongo/dbtests/mock/mock_dbclient_connection.cpp
+++ b/src/mongo/dbtests/mock/mock_dbclient_connection.cpp
@@ -169,10 +169,6 @@ void MockDBClientConnection::insert(const string& ns, const vector<BSONObj>& obj
}
}
-void MockDBClientConnection::remove(const string& ns, Query query, bool justOne) {
- remove(ns, query, (justOne ? RemoveOption_JustOne : 0));
-}
-
void MockDBClientConnection::remove(const string& ns, Query query, int flags) {
_remoteServer->remove(ns, query, flags);
}
@@ -181,11 +177,6 @@ void MockDBClientConnection::killCursor(long long cursorID) {
verify(false); // unimplemented
}
-bool MockDBClientConnection::callRead(mongo::Message& toSend, mongo::Message& response) {
- verify(false); // unimplemented
- return false;
-}
-
bool MockDBClientConnection::call(mongo::Message& toSend,
mongo::Message& response,
bool assertOk,
diff --git a/src/mongo/dbtests/mock/mock_dbclient_connection.h b/src/mongo/dbtests/mock/mock_dbclient_connection.h
index 7c05c17e15d..21e2bdc3c83 100644
--- a/src/mongo/dbtests/mock/mock_dbclient_connection.h
+++ b/src/mongo/dbtests/mock/mock_dbclient_connection.h
@@ -88,8 +88,6 @@ public:
virtual void insert(const std::string& ns, const std::vector<BSONObj>& objList, int flags = 0);
- virtual void remove(const std::string& ns, Query query, bool justOne = false);
-
virtual void remove(const std::string& ns, Query query, int flags = 0);
//
@@ -122,11 +120,10 @@ public:
//
void killCursor(long long cursorID);
- bool callRead(mongo::Message& toSend, mongo::Message& response);
bool call(mongo::Message& toSend,
mongo::Message& response,
- bool assertOk = true,
- std::string* actualServer = 0);
+ bool assertOk,
+ std::string* actualServer);
void say(mongo::Message& toSend, bool isRetry = false, std::string* actualServer = 0);
bool lazySupported() const;