summaryrefslogtreecommitdiff
path: root/src/mongo/util/net/hostandport.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/util/net/hostandport.cpp')
-rw-r--r--src/mongo/util/net/hostandport.cpp7
1 files changed, 0 insertions, 7 deletions
diff --git a/src/mongo/util/net/hostandport.cpp b/src/mongo/util/net/hostandport.cpp
index f351b51b9b9..eb22852a926 100644
--- a/src/mongo/util/net/hostandport.cpp
+++ b/src/mongo/util/net/hostandport.cpp
@@ -52,13 +52,6 @@ StatusWith<HostAndPort> HostAndPort::parse(StringData text) {
return StatusWith<HostAndPort>(result);
}
-Status validateHostAndPort(const std::string& hostAndPortStr) {
- if (hostAndPortStr.empty()) {
- return Status::OK();
- }
- return HostAndPort::parse(hostAndPortStr).getStatus();
-}
-
HostAndPort::HostAndPort() : _port(-1) {}
HostAndPort::HostAndPort(StringData text) {