mirror of
https://github.com/octoleo/restic.git
synced 2024-12-24 11:55:28 +00:00
fs: remove unneeded code
This commit is contained in:
parent
b7713d2d34
commit
c30f4a9134
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user