Remove unused code (fixed: unused, structcheck, deadcode linters)

This commit is contained in:
Mark Sagi-Kazar
2019-12-18 15:46:49 +01:00
parent e0f927c7a9
commit 8c3dc0ca66
3 changed files with 0 additions and 17 deletions

View File

@@ -47,19 +47,6 @@ type webConfig struct {
extra map[string]string
}
func join(base, path string) string {
b := strings.HasSuffix(base, "/")
p := strings.HasPrefix(path, "/")
switch {
case b && p:
return base + path[1:]
case b || p:
return base + path
default:
return base + "/" + path
}
}
func dirExists(dir string) error {
stat, err := os.Stat(dir)
if err != nil {