diff options
Diffstat (limited to 'src/archive/tar/stat_unix.go')
-rw-r--r-- | src/archive/tar/stat_unix.go | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/src/archive/tar/stat_unix.go b/src/archive/tar/stat_unix.go index 5b23d3c830..0f3428bc24 100644 --- a/src/archive/tar/stat_unix.go +++ b/src/archive/tar/stat_unix.go @@ -17,7 +17,6 @@ import ( func init() { sysStat = statUnix - loadUidAndGid = loadUidAndGidFunc } // userMap and groupMap caches UID and GID lookups for performance reasons. @@ -100,12 +99,3 @@ func statUnix(fi fs.FileInfo, h *Header) error { } return nil } - -func loadUidAndGidFunc(fi fs.FileInfo, uid, gid *int) { - sys, ok := fi.Sys().(*syscall.Stat_t) - if !ok { - return - } - *uid = int(sys.Uid) - *gid = int(sys.Gid) -} |