mirror of
https://github.com/restic/restic.git
synced 2026-10-13 13:37:12 +00:00
fs: remove unused methods from File interface
This commit is contained in:
1 parent
f0329bb4e6
commit
6c16733dfd
2 files changed
-10
No files matched your search
@@ -229,18 +229,10 @@ type fakeFile struct {
|
||||
// ensure that fakeFile implements File
|
||||
var _ File = fakeFile{}
|
||||
|
||||
func (f fakeFile) Fd() uintptr {
|
||||
return 0
|
||||
}
|
||||
|
||||
func (f fakeFile) Readdirnames(_ int) ([]string, error) {
|
||||
return nil, pathError("readdirnames", f.name, os.ErrInvalid)
|
||||
}
|
||||
|
||||
func (f fakeFile) Seek(int64, int) (int64, error) {
|
||||
return 0, pathError("seek", f.name, os.ErrInvalid)
|
||||
}
|
||||
|
||||
func (f fakeFile) Read(_ []byte) (int, error) {
|
||||
return 0, pathError("read", f.name, os.ErrInvalid)
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user