fs: remove unneeded code
This commit is contained in:
parent
b7713d2d34
commit
c30f4a9134
1 changed files with 0 additions and 9 deletions
|
@ -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 a new issue