Skip to content

Commit

Permalink
openat: remove unused function
Browse files Browse the repository at this point in the history
The only user of this function was dropped in commit 90adf5c
("mkdir: do not return errors for incorrect directory modes or owners")
but we forgot to remove the function itself.

Signed-off-by: Aleksa Sarai <cyphar@cyphar.com>
  • Loading branch information
cyphar committed Sep 30, 2024
1 parent d0c7d67 commit 4348fee
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions openat_linux.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 4348fee

Please sign in to comment.