From ca6a0fee1b3f68ab4e9f8e1c7fbe80f178e68c09 Mon Sep 17 00:00:00 2001 From: Russ Cox Date: Tue, 15 Sep 2009 09:41:59 -0700 Subject: more "declared and not used". the last round omitted := range and only checked 1 out of N vars in a multi-var := R=r OCL=34624 CL=34638 --- src/pkg/gob/decoder.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/pkg/gob/decoder.go') diff --git a/src/pkg/gob/decoder.go b/src/pkg/gob/decoder.go index 3442f80536..52a5015317 100644 --- a/src/pkg/gob/decoder.go +++ b/src/pkg/gob/decoder.go @@ -37,7 +37,7 @@ func NewDecoder(r io.Reader) *Decoder { func (dec *Decoder) recvType(id typeId) { // Have we already seen this type? That's an error - if wt_, alreadySeen := dec.seen[id]; alreadySeen { + if _, alreadySeen := dec.seen[id]; alreadySeen { dec.state.err = os.ErrorString("gob: duplicate type received"); return } @@ -54,8 +54,6 @@ func (dec *Decoder) recvType(id typeId) { // The value underlying e must be the correct type for the next // data item received. func (dec *Decoder) Decode(e interface{}) os.Error { - rt, indir := indirect(reflect.Typeof(e)); - // Make sure we're single-threaded through here. dec.mutex.Lock(); defer dec.mutex.Unlock(); -- cgit v1.3