From f4275441ce62435cf885411ef2e9801b58562291 Mon Sep 17 00:00:00 2001 From: Russ Cox Date: Mon, 14 Sep 2009 17:20:29 -0700 Subject: fix "declared and not used" errors in non-test code. R=r DELTA=112 (6 added, 57 deleted, 49 changed) OCL=34610 CL=34610 --- src/pkg/regexp/regexp.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/pkg/regexp/regexp.go') diff --git a/src/pkg/regexp/regexp.go b/src/pkg/regexp/regexp.go index 55c8a6325..b378a669c 100644 --- a/src/pkg/regexp/regexp.go +++ b/src/pkg/regexp/regexp.go @@ -972,11 +972,11 @@ func (re *Regexp) allMatches(s string, b []byte, n int, deliver func(int, int)) // after a previous match, so ignore it. accept = false; } - var rune, width int; + var width int; if b == nil { - rune, width = utf8.DecodeRuneInString(s[pos:end]); + _, width = utf8.DecodeRuneInString(s[pos:end]); } else { - rune, width = utf8.DecodeRune(b[pos:end]); + _, width = utf8.DecodeRune(b[pos:end]); } if width > 0 { pos += width; -- cgit v1.2.3