2
2
mirror of https://github.com/octoleo/restic.git synced 2024-11-27 07:16:40 +00:00

fs: remove unused methods from File interface

This commit is contained in:
Michael Eischer 2024-08-27 15:15:27 +02:00
parent f0329bb4e6
commit 6c16733dfd
2 changed files with 0 additions and 10 deletions

View File

@ -229,18 +229,10 @@ type fakeFile struct {
// ensure that fakeFile implements File // ensure that fakeFile implements File
var _ File = fakeFile{} var _ File = fakeFile{}
func (f fakeFile) Fd() uintptr {
return 0
}
func (f fakeFile) Readdirnames(_ int) ([]string, error) { func (f fakeFile) Readdirnames(_ int) ([]string, error) {
return nil, pathError("readdirnames", f.name, os.ErrInvalid) 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) { func (f fakeFile) Read(_ []byte) (int, error) {
return 0, pathError("read", f.name, os.ErrInvalid) return 0, pathError("read", f.name, os.ErrInvalid)
} }

View File

@ -29,9 +29,7 @@ type File interface {
io.Reader io.Reader
io.Closer io.Closer
Fd() uintptr
Readdirnames(n int) ([]string, error) Readdirnames(n int) ([]string, error)
Seek(int64, int) (int64, error)
Stat() (os.FileInfo, error) Stat() (os.FileInfo, error)
Name() string Name() string
} }