]> Cypherpunks repositories - gostls13.git/commitdiff
net: delete unused code
authorcuiweixie <cuiweixie@gmail.com>
Wed, 28 Sep 2022 10:04:25 +0000 (18:04 +0800)
committerGopher Robot <gobot@golang.org>
Thu, 29 Sep 2022 20:43:19 +0000 (20:43 +0000)
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>
src/net/resolverdialfunc_test.go
src/net/timeout_test.go

index 034c636eb6937cbd9c48ebb2f96d31c7d17eb48a..1fb02b17370d472cb03c5c442f18a7f91eae77ea 100644 (file)
@@ -213,7 +213,6 @@ var (
 
 type resolverFuncConn struct {
        h       *resolverDialHandler
-       ctx     context.Context
        network string
        address string
        builder *dnsmessage.Builder
index 52ddf8c429870763b2c5c207d61294e586422bf6..832f40f9a83e35f192e77029dc1e321184ce1e06 100644 (file)
@@ -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 {