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:
greatroar
2021-05-27 22:51:40 +02:00
parent d7322a5f36
commit 0666c4d244
11 changed files with 19 additions and 43 deletions
-4
View File
@@ -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 }