summaryrefslogtreecommitdiff
path: root/src/pkg/datafmt/parser.go
diff options
context:
space:
mode:
authorRuss Cox <rsc@golang.org>2009-09-15 09:41:59 -0700
committerRuss Cox <rsc@golang.org>2009-09-15 09:41:59 -0700
commit0ebfa231d21b255d84cfdb8a618cfe397db6c497 (patch)
tree46eac6aefe26f0b9056bff646d960bcba3d076cf /src/pkg/datafmt/parser.go
parentc67478eb2cfefebf09d0c648efa24bb9578078ba (diff)
downloadgolang-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/datafmt/parser.go')
-rw-r--r--src/pkg/datafmt/parser.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pkg/datafmt/parser.go b/src/pkg/datafmt/parser.go
index 245689a0c..d1fa3f2cb 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;