summaryrefslogtreecommitdiff
path: root/src/mongo/rpc/reply_builder_test.cpp
diff options
context:
space:
mode:
authorMathias Stearn <mathias@10gen.com>2017-03-31 21:11:55 -0400
committerMathias Stearn <mathias@10gen.com>2017-04-12 08:57:12 -0400
commit3c7f43bc2cf5419b4061bd55351a1894a0e32152 (patch)
tree6bb35fe4cc6444298e127af1eaeb3fa83f02495d /src/mongo/rpc/reply_builder_test.cpp
parentc739baf5366cbd987bf61acc29a54f56e209a3b7 (diff)
downloadmongo-3c7f43bc2cf5419b4061bd55351a1894a0e32152.tar.gz
SERVER-28508 Delete unused DocumentRange rpc cruft
Diffstat (limited to 'src/mongo/rpc/reply_builder_test.cpp')
-rw-r--r--src/mongo/rpc/reply_builder_test.cpp8
1 files changed, 0 insertions, 8 deletions
diff --git a/src/mongo/rpc/reply_builder_test.cpp b/src/mongo/rpc/reply_builder_test.cpp
index 4aa6a9758e0..7be0b2f0dbe 100644
--- a/src/mongo/rpc/reply_builder_test.cpp
+++ b/src/mongo/rpc/reply_builder_test.cpp
@@ -33,7 +33,6 @@
#include "mongo/db/json.h"
#include "mongo/rpc/command_reply.h"
#include "mongo/rpc/command_reply_builder.h"
-#include "mongo/rpc/document_range.h"
#include "mongo/rpc/legacy_reply.h"
#include "mongo/rpc/legacy_reply_builder.h"
#include "mongo/unittest/death_test.h"
@@ -180,19 +179,12 @@ void testRoundTrip(rpc::ReplyBuilderInterface& replyBuilder) {
outputDoc1.appendSelfToBufBuilder(outputDocs);
outputDoc2.appendSelfToBufBuilder(outputDocs);
outputDoc3.appendSelfToBufBuilder(outputDocs);
- rpc::DocumentRange outputDocRange{outputDocs.buf(), outputDocs.buf() + outputDocs.len()};
- if (replyBuilder.getProtocol() != rpc::Protocol::kOpQuery) {
- replyBuilder.addOutputDocs(outputDocRange);
- }
auto msg = replyBuilder.done();
T parsed(&msg);
ASSERT_BSONOBJ_EQ(parsed.getMetadata(), metadata);
- if (replyBuilder.getProtocol() != rpc::Protocol::kOpQuery) {
- ASSERT_TRUE(parsed.getOutputDocs() == outputDocRange);
- }
}
} // namespace