diff options
author | Tommaso Tocci <tommaso.tocci@mongodb.com> | 2020-10-01 13:46:39 +0200 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2020-10-01 12:55:27 +0000 |
commit | f880b32be6c6081ca0eb6599fd14b8fad5a5813c (patch) | |
tree | 827fd25908add62d0b11340cb3632da6b57ea918 /src/mongo/db/api_parameters.h | |
parent | bfd22982681e0af44f52b586b432091174d17945 (diff) | |
download | mongo-f880b32be6c6081ca0eb6599fd14b8fad5a5813c.tar.gz |
Revert "SERVER-50375 Thoroughly test that mongos forwards API parameters"
This reverts commit e66093f0a8ee3cd95dea9480028a6da814bb1854.
Diffstat (limited to 'src/mongo/db/api_parameters.h')
-rw-r--r-- | src/mongo/db/api_parameters.h | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/src/mongo/db/api_parameters.h b/src/mongo/db/api_parameters.h index 34c129bca15..efbebfabfcc 100644 --- a/src/mongo/db/api_parameters.h +++ b/src/mongo/db/api_parameters.h @@ -49,11 +49,6 @@ public: static APIParameters fromClient(const APIParametersFromClient& apiParamsFromClient); static APIParameters fromBSON(const BSONObj& cmdObj); - // For use with unordered_map. - struct Hash { - std::size_t operator()(const APIParameters& params) const; - }; - void appendInfo(BSONObjBuilder* builder) const; const boost::optional<std::string>& getAPIVersion() const { @@ -90,14 +85,6 @@ private: boost::optional<bool> _apiDeprecationErrors; }; -inline bool operator==(const APIParameters& lhs, const APIParameters& rhs) { - return lhs.getAPIVersion() == rhs.getAPIVersion() && lhs.getAPIStrict() == rhs.getAPIStrict() && - lhs.getAPIDeprecationErrors() == rhs.getAPIDeprecationErrors(); -} - -inline bool operator!=(const APIParameters& lhs, const APIParameters& rhs) { - return !(lhs == rhs); -} /** * Temporarily remove the user's API parameters from an OperationContext. |