summaryrefslogtreecommitdiff
path: root/src/mongo/db/api_parameters.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/db/api_parameters.h')
-rw-r--r--src/mongo/db/api_parameters.h13
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.