cmd/{asm,compile/internal}: delete dead code

Delete unused fields, methods, vars, and funcs. Spotted by
honnef.co/go/unused.

Change-Id: I0e65484bbd916e59369c4018be46f120b469d610
Reviewed-on: https://go-review.googlesource.com/27731
Run-TryBot: Dave Cheney <dave@cheney.net>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: David Crawshaw <crawshaw@golang.org>
This commit is contained in:
Dave Cheney 2016-08-25 16:40:50 +10:00
parent f29ec7d74a
commit e90ae90b7a
11 changed files with 4 additions and 95 deletions

View file

@ -444,7 +444,7 @@ func (p *importer) typ() *Type {
result := p.paramList()
nointerface := p.bool()
n := methodname1(newname(sym), recv[0].Right)
n := methodname(newname(sym), recv[0].Right)
n.Type = functype(recv[0], params, result)
checkwidth(n.Type)
addmethod(sym, n.Type, tsym.Pkg, false, nointerface)