all: Remove unused method receivers (#8462)

Co-authored-by: deepsource-autofix[bot] <62050782+deepsource-autofix[bot]@users.noreply.github.com>
This commit is contained in:
deepsource-autofix[bot]
2022-07-28 17:32:45 +02:00
committed by GitHub
co-authored by deepsource-autofix[bot] <62050782+deepsource-autofix[bot]@users.noreply.github.com>
parent 388e4db9cd
commit 755d21953f
38 changed files with 129 additions and 129 deletions
+13 -13
View File
@@ -597,23 +597,23 @@ func (fs *fakeFS) Stat(name string) (FileInfo, error) {
return fs.Lstat(name)
}
func (fs *fakeFS) SymlinksSupported() bool {
func (*fakeFS) SymlinksSupported() bool {
return false
}
func (fs *fakeFS) Walk(_ string, _ WalkFunc) error {
func (*fakeFS) Walk(_ string, _ WalkFunc) error {
return errors.New("not implemented")
}
func (fs *fakeFS) Watch(_ string, _ Matcher, _ context.Context, _ bool) (<-chan Event, <-chan error, error) {
func (*fakeFS) Watch(_ string, _ Matcher, _ context.Context, _ bool) (<-chan Event, <-chan error, error) {
return nil, nil, ErrWatchNotSupported
}
func (fs *fakeFS) Hide(_ string) error {
func (*fakeFS) Hide(_ string) error {
return nil
}
func (fs *fakeFS) Unhide(_ string) error {
func (*fakeFS) Unhide(_ string) error {
return nil
}
@@ -622,15 +622,15 @@ func (fs *fakeFS) Glob(_ string) ([]string, error) {
return nil, errors.New("not implemented")
}
func (fs *fakeFS) Roots() ([]string, error) {
func (*fakeFS) Roots() ([]string, error) {
return []string{"/"}, nil
}
func (fs *fakeFS) Usage(_ string) (Usage, error) {
func (*fakeFS) Usage(_ string) (Usage, error) {
return Usage{}, errors.New("not implemented")
}
func (fs *fakeFS) Type() FilesystemType {
func (*fakeFS) Type() FilesystemType {
return FilesystemTypeFake
}
@@ -638,7 +638,7 @@ func (fs *fakeFS) URI() string {
return fs.uri
}
func (fs *fakeFS) Options() []Option {
func (*fakeFS) Options() []Option {
return nil
}
@@ -661,11 +661,11 @@ func (fs *fakeFS) PlatformData(name string) (protocol.PlatformData, error) {
return unixPlatformData(fs, name)
}
func (fs *fakeFS) underlying() (Filesystem, bool) {
func (*fakeFS) underlying() (Filesystem, bool) {
return nil, false
}
func (fs *fakeFS) wrapperType() filesystemWrapperType {
func (*fakeFS) wrapperType() filesystemWrapperType {
return filesystemWrapperTypeNone
}
@@ -698,7 +698,7 @@ type fakeFile struct {
presentedName string // present (i.e. != "") on insensitive fs only
}
func (f *fakeFile) Close() error {
func (*fakeFile) Close() error {
return nil
}
@@ -912,7 +912,7 @@ func (f *fakeFile) Stat() (FileInfo, error) {
return info, nil
}
func (f *fakeFile) Sync() error {
func (*fakeFile) Sync() error {
return nil
}