diff options
author | Mathias Stearn <mathias@10gen.com> | 2018-04-25 16:36:59 -0400 |
---|---|---|
committer | Mathias Stearn <mathias@10gen.com> | 2018-05-08 14:57:37 -0400 |
commit | 2d35461cb54e35afea223714fab1a184a9b381e2 (patch) | |
tree | 6b4b4379605b76f812fc02b20f54b4eccfddf349 /src/mongo/db/commands.cpp | |
parent | 589af3820b00ed0b7ac26a84cfeed6554ab191f3 (diff) | |
download | mongo-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.cpp | 8 |
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 |