1
0
mirror of https://github.com/golang/go synced 2024-11-18 16:14:46 -07:00

os: delete unused errClosed

errClosed was introduced by CL 163058 and was supposed to be removed by CL 243906,
but somehow it was left out, now we should get it deleted.

Change-Id: I74c4b36b8bbc4844e1860acb022a16b0aa3272b2
Reviewed-on: https://go-review.googlesource.com/c/go/+/427035
Run-TryBot: Andy Pan <panjf2000@gmail.com>
Reviewed-by: Michael Knyszek <mknyszek@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Auto-Submit: Ian Lance Taylor <iant@google.com>
Reviewed-by: Daniel Martí <mvdan@mvdan.cc>
Run-TryBot: Ian Lance Taylor <iant@google.com>
Reviewed-by: Ian Lance Taylor <iant@google.com>
This commit is contained in:
Andy Pan 2022-08-31 21:59:29 +08:00 committed by Gopher Robot
parent dc029f286e
commit 979956a732

View File

@ -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.