aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/os/file.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/os/file.go')
-rw-r--r--src/os/file.go10
1 files changed, 0 insertions, 10 deletions
diff --git a/src/os/file.go b/src/os/file.go
index acf33f850..7c3c0db12 100644
--- a/src/os/file.go
+++ b/src/os/file.go
@@ -290,16 +290,6 @@ func (f *File) Sync() (err error) {
return
}
-// Truncate is a stub, not yet implemented
-func (f *File) Truncate(size int64) (err error) {
- if f.handle == nil {
- err = ErrClosed
- } else {
- err = ErrNotImplemented
- }
- return &PathError{Op: "truncate", Path: f.name, Err: err}
-}
-
// LinkError records an error during a link or symlink or rename system call and
// the paths that caused it.
type LinkError struct {