aboutsummaryrefslogtreecommitdiff
path: root/punycode.go
diff options
context:
space:
mode:
Diffstat (limited to 'punycode.go')
-rw-r--r--punycode.go18
1 files changed, 0 insertions, 18 deletions
diff --git a/punycode.go b/punycode.go
index cf0ecb4..58f84e5 100644
--- a/punycode.go
+++ b/punycode.go
@@ -26,21 +26,3 @@ func punycodeHostname(hostname string) (string, error) {
}
return idna.Lookup.ToASCII(hostname)
}
-
-// punycodeHost returns the punycoded version of host.
-// host may contain a port.
-func punycodeHost(host string) (string, error) {
- hostname, port, err := net.SplitHostPort(host)
- if err != nil {
- hostname = host
- port = ""
- }
- hostname, err = punycodeHostname(hostname)
- if err != nil {
- return "", err
- }
- if port == "" {
- return hostname, nil
- }
- return net.JoinHostPort(hostname, port), nil
-}