fusefrontend: rely on nodefs.defaultFile for no-op functions

Now that we embed nodefs.NewDefaultFile(), we can drop our own
no-ops.
This commit is contained in:
Jakob Unterwurzacher 2017-05-01 19:12:37 +02:00
parent 1a89919d80
commit f322ee87e3
1 changed files with 2 additions and 7 deletions

View File

@ -22,6 +22,8 @@ import (
"github.com/rfjakob/gocryptfs/internal/tlog"
)
var _ nodefs.File = &file{} // Verify that interface is implemented.
// File - based on loopbackFile in go-fuse/fuse/nodefs/files.go
type file struct {
fd *os.File
@ -84,13 +86,6 @@ func (f *file) intFd() int {
return int(f.fd.Fd())
}
func (f *file) InnerFile() nodefs.File {
return nil
}
func (f *file) SetInode(n *nodefs.Inode) {
}
// readFileID loads the file header from disk and extracts the file ID.
// Returns io.EOF if the file is empty.
func (f *file) readFileID() ([]byte, error) {