From 979956a7321e74f1441ae2a05c9dc6560d7fe84c Mon Sep 17 00:00:00 2001 From: Andy Pan Date: Wed, 31 Aug 2022 21:59:29 +0800 Subject: [PATCH] os: delete unused errClosed MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 Reviewed-by: Michael Knyszek TryBot-Result: Gopher Robot Auto-Submit: Ian Lance Taylor Reviewed-by: Daniel Martí Run-TryBot: Ian Lance Taylor Reviewed-by: Ian Lance Taylor --- src/os/error.go | 2 -- 1 file changed, 2 deletions(-) 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.