diff options
| author | Russ Cox <rsc@golang.org> | 2009-09-15 09:41:59 -0700 | 
|---|---|---|
| committer | Russ Cox <rsc@golang.org> | 2009-09-15 09:41:59 -0700 | 
| commit | 0ebfa231d21b255d84cfdb8a618cfe397db6c497 (patch) | |
| tree | 46eac6aefe26f0b9056bff646d960bcba3d076cf /src/pkg/utf8/utf8.go | |
| parent | c67478eb2cfefebf09d0c648efa24bb9578078ba (diff) | |
| download | golang-0ebfa231d21b255d84cfdb8a618cfe397db6c497.tar.gz | |
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
Diffstat (limited to 'src/pkg/utf8/utf8.go')
| -rw-r--r-- | src/pkg/utf8/utf8.go | 10 | 
1 files changed, 5 insertions, 5 deletions
| diff --git a/src/pkg/utf8/utf8.go b/src/pkg/utf8/utf8.go index 735bd8749..c8dc61304 100644 --- a/src/pkg/utf8/utf8.go +++ b/src/pkg/utf8/utf8.go @@ -187,13 +187,13 @@ func decodeRuneInStringInternal(s string) (rune, size int, short bool) {  // FullRune reports whether the bytes in p begin with a full UTF-8 encoding of a rune.  // An invalid encoding is considered a full Rune since it will convert as a width-1 error rune.  func FullRune(p []byte) bool { -	rune, size, short := decodeRuneInternal(p); +	_, _, short := decodeRuneInternal(p);  	return !short  }  // FullRuneInString is like FullRune but its input is a string.  func FullRuneInString(s string) bool { -	rune, size, short := decodeRuneInStringInternal(s); +	_, _, short := decodeRuneInStringInternal(s);  	return !short  } @@ -265,7 +265,7 @@ func RuneCount(p []byte) int {  		if p[i] < RuneSelf {  			i++;  		} else { -			rune, size := DecodeRune(p[i:len(p)]); +			_, size := DecodeRune(p[i:len(p)]);  			i += size;  		}  	} @@ -276,12 +276,12 @@ func RuneCount(p []byte) int {  func RuneCountInString(s string) int {  	ei := len(s);  	i := 0; -	n := 0; +	var n int;  	for n = 0; i < ei; n++ {  		if s[i] < RuneSelf {  			i++;  		} else { -			rune, size, short := decodeRuneInStringInternal(s[i:ei]); +			_, size, _ := decodeRuneInStringInternal(s[i:ei]);  			i += size;  		}  	} | 
