From 3b0f2a7da515f7996c31ecf5a5c957061022902a Mon Sep 17 00:00:00 2001 From: Jakob Unterwurzacher Date: Fri, 20 Nov 2026 22:58:40 +0100 Subject: Remove unused nametransform.Dir and syscallcompat.GetdentsSpecial Found with "deadcode -test ./..." on linux and darwin: neither function is called by any binary or test on either platform. Co-Authored-By: Claude Opus 5.5 --- internal/nametransform/names.go | 10 ---------- 1 file changed, 10 deletions(-) (limited to 'internal/nametransform/names.go') 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 { -- cgit v1.2.3