mirror of
https://github.com/octoleo/restic.git
synced 2024-12-25 12:09:59 +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
|
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.
|
// these constants should've been defined in x/sys/unix, but somehow aren't.
|
||||||
const (
|
const (
|
||||||
_POSIX_FADV_NORMAL = iota
|
_POSIX_FADV_NORMAL = iota
|
||||||
|
Loading…
Reference in New Issue
Block a user