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/datafmt/parser.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/pkg/datafmt/parser.go') diff --git a/src/pkg/datafmt/parser.go b/src/pkg/datafmt/parser.go index 245689a0c3..d1fa3f2cbb 100644 --- a/src/pkg/datafmt/parser.go +++ b/src/pkg/datafmt/parser.go @@ -368,7 +368,7 @@ func Parse(filename string, src []byte, fmap FormatterMap) (Format, os.Error) { // add custom formatters, if any for name, form := range fmap { name = remap(&p, name); - if t, found := p.rules[name]; !found { + if _, found := p.rules[name]; !found { p.rules[name] = &custom{name, form}; } else { var invalidPos token.Position; -- cgit v1.3