From: Rob Pike Date: Fri, 22 Mar 2013 21:22:55 +0000 (-0700) Subject: encoding/gob: delete dead code. X-Git-Tag: go1.1rc2~375 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=f29b091110e56fc5cf34eb02fa39824006fa17bc;p=gostls13.git encoding/gob: delete dead code. R=golang-dev, rsc CC=golang-dev https://golang.org/cl/7834047 --- diff --git a/src/pkg/encoding/gob/codec_test.go b/src/pkg/encoding/gob/codec_test.go index 482212b746..9e38e31d5d 100644 --- a/src/pkg/encoding/gob/codec_test.go +++ b/src/pkg/encoding/gob/codec_test.go @@ -1191,10 +1191,8 @@ func TestInterface(t *testing.T) { if v1 != nil || v2 != nil { t.Errorf("item %d inconsistent nils", i) } - continue - if v1.Square() != v2.Square() { - t.Errorf("item %d inconsistent values: %v %v", i, v1, v2) - } + } else if v1.Square() != v2.Square() { + t.Errorf("item %d inconsistent values: %v %v", i, v1, v2) } } }