summaryrefslogtreecommitdiff
path: root/src/mongo/db/api_parameters.cpp
diff options
context:
space:
mode:
authorTommaso Tocci <tommaso.tocci@mongodb.com>2020-10-01 13:46:39 +0200
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2020-10-01 12:55:27 +0000
commitf880b32be6c6081ca0eb6599fd14b8fad5a5813c (patch)
tree827fd25908add62d0b11340cb3632da6b57ea918 /src/mongo/db/api_parameters.cpp
parentbfd22982681e0af44f52b586b432091174d17945 (diff)
downloadmongo-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.cpp')
-rw-r--r--src/mongo/db/api_parameters.cpp14
1 files changed, 0 insertions, 14 deletions
diff --git a/src/mongo/db/api_parameters.cpp b/src/mongo/db/api_parameters.cpp
index 51e424637db..05ffe9c49cb 100644
--- a/src/mongo/db/api_parameters.cpp
+++ b/src/mongo/db/api_parameters.cpp
@@ -76,18 +76,4 @@ void APIParameters::appendInfo(BSONObjBuilder* builder) const {
}
}
-std::size_t APIParameters::Hash::operator()(const APIParameters& params) const {
- size_t seed = 0;
- if (params.getAPIVersion()) {
- boost::hash_combine(seed, *params.getAPIVersion());
- }
- if (params.getAPIStrict()) {
- boost::hash_combine(seed, *params.getAPIStrict());
- }
- if (params.getAPIDeprecationErrors()) {
- boost::hash_combine(seed, *params.getAPIDeprecationErrors());
- }
- return seed;
-}
-
} // namespace mongo