Skip to content

Commit

Permalink
fs: remove unneeded code
Browse files Browse the repository at this point in the history
  • Loading branch information
fd0 committed Mar 28, 2016
1 parent b7713d2 commit c30f4a9
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions src/restic/fs/file_linux.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,6 @@ func Open(name string) (File, error) {
return &nonCachingFile{File: file}, err
}

// osFile wraps an *os.File and adds a no-op ClearCache() method.
type osFile struct {
*os.File
}

func (osFile) ClearCache() error {
return nil
}

// these constants should've been defined in x/sys/unix, but somehow aren't.
const (
_POSIX_FADV_NORMAL = iota
Expand Down

0 comments on commit c30f4a9

Please sign in to comment.