summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/mongo/db/server_options.h11
1 files changed, 0 insertions, 11 deletions
diff --git a/src/mongo/db/server_options.h b/src/mongo/db/server_options.h
index 3e82a903af8..8161061f80d 100644
--- a/src/mongo/db/server_options.h
+++ b/src/mongo/db/server_options.h
@@ -218,17 +218,6 @@ struct ServerGlobalParams {
return _version.load();
}
- /**
- * This unsafe getter for the featureCompatibilityVersion parameter returns the last-stable
- * featureCompatibilityVersion value if the parameter has not yet been initialized with a
- * meaningful value. This getter should only be used if the parameter is intentionally read
- * prior to the creation/parsing of the featureCompatibilityVersion document.
- */
- const Version getVersionUnsafe() const {
- Version v = _version.load();
- return (v == Version::kUnsetDefault42Behavior) ? Version::kFullyDowngradedTo42 : v;
- }
-
void reset() {
_version.store(Version::kUnsetDefault42Behavior);
}