mirror of
https://github.com/restic/restic.git
synced 2026-07-18 05:04:54 +00:00
Make restic.{lchown,mknod} regular functions
This way, they can be inlined and dead code can be removed on Windows. Also fixed some comments.
This commit is contained in:
@@ -32,10 +32,6 @@ func (node Node) restoreSymlinkTimestamps(path string, utimes [2]syscall.Timespe
|
||||
return dir.Close()
|
||||
}
|
||||
|
||||
func (node Node) device() int {
|
||||
return int(node.Device)
|
||||
}
|
||||
|
||||
func (s statT) atim() syscall.Timespec { return s.Atim }
|
||||
func (s statT) mtim() syscall.Timespec { return s.Mtim }
|
||||
func (s statT) ctim() syscall.Timespec { return s.Ctim }
|
||||
|
||||
Reference in New Issue
Block a user