diff --git a/src/os/error.go b/src/os/error.go index fe8f2a8446..9827446e65 100644 --- a/src/os/error.go +++ b/src/os/error.go @@ -5,7 +5,6 @@ package os import ( - "internal/oserror" "internal/poll" "io/fs" ) @@ -28,7 +27,6 @@ var ( ErrDeadlineExceeded = errDeadlineExceeded() // "i/o timeout" ) -func errClosed() error { return oserror.ErrClosed } func errNoDeadline() error { return poll.ErrNoDeadline } // errDeadlineExceeded returns the value for os.ErrDeadlineExceeded.