pkg/urlutil: remove unused IsTransportURL()
This function is no longer used (either internally, or externally), so
can be removed.
@@ -18,13 +18,6 @@ var (
invalidGitUrls = []string{
"http://github.com/docker/docker.git:#branch",
}
- transportUrls = []string{
- "tcp://example.com",
- "tcp+tls://example.com",
- "udp://example.com",
- "unix:///example",
- "unixgram:///example",
- }
)
func TestIsGIT(t *testing.T) {
@@ -46,11 +39,3 @@ func TestIsGIT(t *testing.T) {
}
}
}
-
-func TestIsTransport(t *testing.T) {
- for _, url := range transportUrls {
- if !IsTransportURL(url) {
- t.Fatalf("%q should be detected as valid Transport url", url)
- }
- }
-}
