]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/cgo: delete unused variable in log statement
authorJosh Bleecher Snyder <josharian@gmail.com>
Sun, 6 Nov 2016 19:58:49 +0000 (11:58 -0800)
committerJosh Bleecher Snyder <josharian@gmail.com>
Wed, 9 Nov 2016 15:31:55 +0000 (15:31 +0000)
visit is just a func, and there's no formatting
verb for it, and it's on an internal-error path.
It has been thus many years, unchanged and unexecuted.

Change-Id: I4c2e2673ee9996218c24143bcc3be3eb4abdff25
Reviewed-on: https://go-review.googlesource.com/32970
Run-TryBot: Josh Bleecher Snyder <josharian@gmail.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
src/cmd/cgo/ast.go

index 1d6354ad9d2b2be5f58a4f69878771cff82e4c0d..8ce824196d9a6cfd2e20f3bc149a835559813649 100644 (file)
@@ -297,7 +297,7 @@ func (f *File) walk(x interface{}, context string, visit func(*File, interface{}
 
        // everything else just recurs
        default:
-               error_(token.NoPos, "unexpected type %T in walk", x, visit)
+               error_(token.NoPos, "unexpected type %T in walk", x)
                panic("unexpected type")
 
        case nil: