archiver: Remove unused chmod function

This commit is contained in:
Michael Eischer 2020-03-06 23:39:02 +01:00
parent 014600bee6
commit ee05501ce7
1 changed files with 0 additions and 7 deletions

View File

@ -1984,13 +1984,6 @@ func snapshot(t testing.TB, repo restic.Repository, fs fs.FS, parent restic.ID,
return snapshotID, node
}
func chmod(t testing.TB, filename string, mode os.FileMode) {
err := os.Chmod(filename, mode)
if err != nil {
t.Fatal(err)
}
}
// StatFS allows overwriting what is returned by the Lstat function.
type StatFS struct {
fs.FS