lib9p

Go 9P library.
Log | Files | Refs | LICENSE

commit c6503a43e9ccee609918fd93bf973ea6075417e8
parent fda5d0010493e475f7af4daa362a8740d289f9eb
Author: Matsuda Kenji <info@mtkn.jp>
Date:   Wed, 15 Nov 2023 16:49:50 +0900

delete diskfs.File.Remove

Diffstat:
Mdiskfs/file.go | 14--------------
1 file changed, 0 insertions(+), 14 deletions(-)

diff --git a/diskfs/file.go b/diskfs/file.go @@ -4,7 +4,6 @@ import ( "fmt" "io/fs" "os" - "path/filepath" "git.mtkn.jp/lib9p" ) @@ -94,16 +93,3 @@ func (f *File) WriteAt(p []byte, off int64) (int, error) { } return f.file.WriteAt(p, off) } - -func (f *File) Remove() error { - ospath := filepath.Join(f.fs.rootPath, f.path) - if f.file != nil { - if err := f.file.Close(); err != nil { - return fmt.Errorf("close: %v", err) - } - } - if err := os.Remove(ospath); err != nil { - return fmt.Errorf("remove: %v", err) - } - return nil -}