diff options
Diffstat (limited to 'internal/nametransform/names.go')
| -rw-r--r-- | internal/nametransform/names.go | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/internal/nametransform/names.go b/internal/nametransform/names.go index 0389c95..45f9949 100644 --- a/internal/nametransform/names.go +++ b/internal/nametransform/names.go @@ -6,7 +6,6 @@ import ( "encoding/base64" "errors" "math" - "path/filepath" "runtime" "strings" "syscall" @@ -198,15 +197,6 @@ func (n *NameTransform) B64DecodeString(s string) ([]byte, error) { return n.B64.DecodeString(s) } -// Dir is like filepath.Dir but returns "" instead of ".". -func Dir(path string) string { - d := filepath.Dir(path) - if d == "." { - return "" - } - return d -} - // GetLongNameMax will return curent `longNameMax`. File name longer than // this should be hashed. func (n *NameTransform) GetLongNameMax() int { |
