diff options
author | Mathias Stearn <mathias@10gen.com> | 2017-05-19 17:06:56 -0400 |
---|---|---|
committer | Mathias Stearn <mathias@10gen.com> | 2017-06-07 13:28:51 -0400 |
commit | 107327303755a830236bfef5827b543d88223b89 (patch) | |
tree | 25a9c9586fbcf1ba17651fe00abbd4a6bfebd929 /src/mongo/rpc/op_msg_rpc_impls.h | |
parent | b89c05e65c3168cef9c813f3feca2b1a63621ca2 (diff) | |
download | mongo-107327303755a830236bfef5827b543d88223b89.tar.gz |
SERVER-29264 Kill off rpc::RequestInterface
Diffstat (limited to 'src/mongo/rpc/op_msg_rpc_impls.h')
-rw-r--r-- | src/mongo/rpc/op_msg_rpc_impls.h | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/src/mongo/rpc/op_msg_rpc_impls.h b/src/mongo/rpc/op_msg_rpc_impls.h index e788c8e684f..adc9a8f24f5 100644 --- a/src/mongo/rpc/op_msg_rpc_impls.h +++ b/src/mongo/rpc/op_msg_rpc_impls.h @@ -31,7 +31,6 @@ #include "mongo/rpc/reply_builder_interface.h" #include "mongo/rpc/reply_interface.h" #include "mongo/rpc/request_builder_interface.h" -#include "mongo/rpc/request_interface.h" #include "mongo/util/net/op_msg.h" namespace mongo { @@ -86,29 +85,6 @@ private: OpMsgBuilder _builder; }; -class OpMsgRequest final : public rpc::RequestInterface { -public: - explicit OpMsgRequest(mongo::OpMsgRequest msg) : _msg(std::move(msg)) {} - StringData getDatabase() const override { - return _msg.getDatabase(); - } - StringData getCommandName() const override { - return _msg.getCommandName(); - } - const BSONObj& getMetadata() const override { - return _msg.body; - } - const BSONObj& getCommandArgs() const override { - return _msg.body; - } - rpc::Protocol getProtocol() const override { - return rpc::Protocol::kOpMsg; - } - -private: - const mongo::OpMsgRequest _msg; -}; - class OpMsgRequestBuilder final : public rpc::RequestBuilderInterface { public: RequestBuilderInterface& setDatabase(StringData database) override { |