summaryrefslogtreecommitdiff
path: root/src/mongo/db/commands.cpp
diff options
context:
space:
mode:
authorMathias Stearn <mathias@10gen.com>2018-04-25 16:36:59 -0400
committerMathias Stearn <mathias@10gen.com>2018-05-08 14:57:37 -0400
commit2d35461cb54e35afea223714fab1a184a9b381e2 (patch)
tree6b4b4379605b76f812fc02b20f54b4eccfddf349 /src/mongo/db/commands.cpp
parent589af3820b00ed0b7ac26a84cfeed6554ab191f3 (diff)
downloadmongo-2d35461cb54e35afea223714fab1a184a9b381e2.tar.gz
SERVER-34628 Remove support for Status/StatusWith returns in TypedCommand
Diffstat (limited to 'src/mongo/db/commands.cpp')
-rw-r--r--src/mongo/db/commands.cpp8
1 files changed, 0 insertions, 8 deletions
diff --git a/src/mongo/db/commands.cpp b/src/mongo/db/commands.cpp
index 6bfc1bbcd5c..b24813e9b83 100644
--- a/src/mongo/db/commands.cpp
+++ b/src/mongo/db/commands.cpp
@@ -351,14 +351,6 @@ void CommandReplyBuilder::reset() {
getBodyBuilder().resetToEmpty();
}
-void CommandReplyBuilder::fillFrom(const Status& status) {
- if (!status.isOK()) {
- reset();
- }
- auto bob = getBodyBuilder();
- CommandHelpers::appendCommandStatusNoThrow(bob, status);
-}
-
//////////////////////////////////////////////////////////////
// CommandInvocation