From 4348feea6525ac304339b151030f1eb8c2bfd97c Mon Sep 17 00:00:00 2001 From: Aleksa Sarai Date: Mon, 30 Sep 2024 16:30:51 +0200 Subject: [PATCH] openat: remove unused function The only user of this function was dropped in commit 90adf5c0e78b ("mkdir: do not return errors for incorrect directory modes or owners") but we forgot to remove the function itself. Signed-off-by: Aleksa Sarai --- openat_linux.go | 4 ---- 1 file changed, 4 deletions(-) diff --git a/openat_linux.go b/openat_linux.go index ac083f2..949fb5f 100644 --- a/openat_linux.go +++ b/openat_linux.go @@ -42,10 +42,6 @@ func fstatatFile(dir *os.File, path string, flags int) (unix.Stat_t, error) { return stat, nil } -func fstatFile(fd *os.File) (unix.Stat_t, error) { - return fstatatFile(fd, "", unix.AT_EMPTY_PATH) -} - func readlinkatFile(dir *os.File, path string) (string, error) { size := 4096 for {