Skip to content

Commit 15f3e91

Browse files
committed
opts: remove deprecated ValidateHost
This function is no longer used, and was deprecated in d0ac0ac. Signed-off-by: Sebastiaan van Stijn <[email protected]>
1 parent 0c07d81 commit 15f3e91

File tree

1 file changed

+0
-17
lines changed

1 file changed

+0
-17
lines changed

opts/hosts.go

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -32,23 +32,6 @@ const (
3232
hostGatewayName = "host-gateway"
3333
)
3434

35-
// ValidateHost validates that the specified string is a valid host and returns it.
36-
//
37-
// Deprecated: this function is no longer used, and will be removed in the next release.
38-
func ValidateHost(val string) (string, error) {
39-
host := strings.TrimSpace(val)
40-
// The empty string means default and is not handled by parseDockerDaemonHost
41-
if host != "" {
42-
_, err := parseDockerDaemonHost(host)
43-
if err != nil {
44-
return val, err
45-
}
46-
}
47-
// Note: unlike most flag validators, we don't return the mutated value here
48-
// we need to know what the user entered later (using ParseHost) to adjust for TLS
49-
return val, nil
50-
}
51-
5235
// ParseHost and set defaults for a Daemon host string
5336
func ParseHost(defaultToTLS bool, val string) (string, error) {
5437
host := strings.TrimSpace(val)

0 commit comments

Comments
 (0)