summaryrefslogtreecommitdiff
path: root/src/pkg/json/struct.go
diff options
context:
space:
mode:
authorRuss Cox <rsc@golang.org>2009-09-14 17:20:29 -0700
committerRuss Cox <rsc@golang.org>2009-09-14 17:20:29 -0700
commitf4275441ce62435cf885411ef2e9801b58562291 (patch)
treee2cd321c6ad74a89d52d68181a949bc8bfd76198 /src/pkg/json/struct.go
parent518cd591a17af2ee525b83754d6a4e8f78753c33 (diff)
downloadgolang-f4275441ce62435cf885411ef2e9801b58562291.tar.gz
fix "declared and not used" errors in non-test code.
R=r DELTA=112 (6 added, 57 deleted, 49 changed) OCL=34610 CL=34610
Diffstat (limited to 'src/pkg/json/struct.go')
-rw-r--r--src/pkg/json/struct.go4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/pkg/json/struct.go b/src/pkg/json/struct.go
index e5b2188f5..680a5af4b 100644
--- a/src/pkg/json/struct.go
+++ b/src/pkg/json/struct.go
@@ -248,10 +248,8 @@ func (b *_StructBuilder) Key(k string) Builder {
// On a syntax error, it returns with ok set to false and errtok
// set to the offending token.
func Unmarshal(s string, val interface{}) (ok bool, errtok string) {
- var errindx int;
- var val1 interface{};
b := &_StructBuilder{ reflect.NewValue(val) };
- ok, errindx, errtok = Parse(s, b);
+ ok, _, errtok = Parse(s, b);
if !ok {
return false, errtok
}