mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
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:
parent
f29ec7d74a
commit
e90ae90b7a
11 changed files with 4 additions and 95 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue