mirror of
https://github.com/golang/go
synced 2024-09-15 22:20:06 +00:00
net: delete unused code
Change-Id: Id4c3a140d9619796aee1ba3214f7d5fce040b4e3 Reviewed-on: https://go-review.googlesource.com/c/go/+/435935 Auto-Submit: Ian Lance Taylor <iant@google.com> TryBot-Result: Gopher Robot <gobot@golang.org> Run-TryBot: Ian Lance Taylor <iant@google.com> Reviewed-by: Ian Lance Taylor <iant@google.com> Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
This commit is contained in:
parent
879f595f7e
commit
4973c16f3c
|
@ -213,7 +213,6 @@ var (
|
|||
|
||||
type resolverFuncConn struct {
|
||||
h *resolverDialHandler
|
||||
ctx context.Context
|
||||
network string
|
||||
address string
|
||||
builder *dnsmessage.Builder
|
||||
|
|
|
@ -908,24 +908,10 @@ func TestVariousDeadlines4Proc(t *testing.T) {
|
|||
testVariousDeadlines(t)
|
||||
}
|
||||
|
||||
type neverEnding byte
|
||||
|
||||
func (b neverEnding) Read(p []byte) (int, error) {
|
||||
for i := range p {
|
||||
p[i] = byte(b)
|
||||
}
|
||||
return len(p), nil
|
||||
}
|
||||
|
||||
func testVariousDeadlines(t *testing.T) {
|
||||
if runtime.GOOS == "plan9" {
|
||||
t.Skip("skipping test on plan9; see golang.org/issue/26945")
|
||||
}
|
||||
type result struct {
|
||||
n int64
|
||||
err error
|
||||
d time.Duration
|
||||
}
|
||||
|
||||
handler := func(ls *localServer, ln Listener) {
|
||||
for {
|
||||
|
|
Loading…
Reference in a new issue