diff options
Diffstat (limited to 'internal/vuln/url.go')
| -rw-r--r-- | internal/vuln/url.go | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/internal/vuln/url.go b/internal/vuln/url.go index 60e2d1ea..67774c13 100644 --- a/internal/vuln/url.go +++ b/internal/vuln/url.go @@ -12,7 +12,6 @@ import ( "errors" "net/url" "path/filepath" - "runtime" ) var errNotAbsolute = errors.New("path is not absolute") @@ -43,15 +42,3 @@ func URLToFilePath(u *url.URL) (string, error) { } return checkAbs(path) } - -func convertFileURLPath(host, path string) (string, error) { - if runtime.GOOS == "windows" { - return "", errors.New("windows not supported") - } - switch host { - case "", "localhost": - default: - return "", errors.New("file URL specifies non-local host") - } - return filepath.FromSlash(path), nil -} |
