diff options
| author | Jakob Unterwurzacher | 2026-11-20 22:58:40 +0100 |
|---|---|---|
| committer | Jakob Unterwurzacher | 2026-11-20 22:58:40 +0100 |
| commit | 3b0f2a7da515f7996c31ecf5a5c957061022902a (patch) | |
| tree | ec3e6a8b2fc794c1ef3e49f998931ea266ecdd9d /internal | |
| parent | 7190404b14597fa0afffff1313b192c2b83e04cb (diff) | |
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 <noreply@anthropic.com>
Diffstat (limited to 'internal')
| -rw-r--r-- | internal/nametransform/names.go | 10 | ||||
| -rw-r--r-- | internal/syscallcompat/sys_darwin.go | 4 | ||||
| -rw-r--r-- | internal/syscallcompat/sys_freebsd.go | 6 | ||||
| -rw-r--r-- | internal/syscallcompat/sys_linux.go | 6 |
4 files changed, 0 insertions, 26 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 { diff --git a/internal/syscallcompat/sys_darwin.go b/internal/syscallcompat/sys_darwin.go index 7d39071..9581686 100644 --- a/internal/syscallcompat/sys_darwin.go +++ b/internal/syscallcompat/sys_darwin.go @@ -161,10 +161,6 @@ func Getdents(fd int) ([]fuse.DirEntry, error) { return entries, err } -func GetdentsSpecial(fd int) (entries []fuse.DirEntry, entriesSpecial []fuse.DirEntry, err error) { - return emulateGetdents(fd) -} - // Renameat2 does not exist on Darwin, but RenameatxNp does. func Renameat2(olddirfd int, oldpath string, newdirfd int, newpath string, flags uint) (err error) { // If no flags are set, use tried and true renameat diff --git a/internal/syscallcompat/sys_freebsd.go b/internal/syscallcompat/sys_freebsd.go index 626c8b2..6ce8728 100644 --- a/internal/syscallcompat/sys_freebsd.go +++ b/internal/syscallcompat/sys_freebsd.go @@ -127,12 +127,6 @@ func Getdents(fd int) ([]fuse.DirEntry, error) { return entries, err } -// GetdentsSpecial calls the Getdents syscall, -// with normal entries and "." / ".." split into two slices. -func GetdentsSpecial(fd int) (entries []fuse.DirEntry, entriesSpecial []fuse.DirEntry, err error) { - return emulateGetdents(fd) -} - // Renameat2 does not exist on FreeBSD, so we have to wrap it here. // Retries on EINTR. // The RENAME_EXCHANGE and RENAME_WHITEOUT flags are not supported. diff --git a/internal/syscallcompat/sys_linux.go b/internal/syscallcompat/sys_linux.go index dad7187..224f1cf 100644 --- a/internal/syscallcompat/sys_linux.go +++ b/internal/syscallcompat/sys_linux.go @@ -184,12 +184,6 @@ func Getdents(fd int) ([]fuse.DirEntry, error) { return entries, err } -// GetdentsSpecial calls the Getdents syscall, -// with normal entries and "." / ".." split into two slices. -func GetdentsSpecial(fd int) (entries []fuse.DirEntry, entriesSpecial []fuse.DirEntry, err error) { - return getdents(fd) -} - // Renameat2 does not exist on Darwin, so we have to wrap it here. // Retries on EINTR. func Renameat2(olddirfd int, oldpath string, newdirfd int, newpath string, flags uint) (err error) { |
