mirror of
https://github.com/restic/restic.git
synced 2025-08-22 14:17:48 +00:00
fs: remove unneeded code
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user