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
|
|
@ -258,7 +258,7 @@ func (p *noder) funcHeader(fun *syntax.FuncDecl) *Node {
|
|||
// Receiver MethodName Signature
|
||||
|
||||
f.Func.Shortname = newfuncname(name)
|
||||
f.Func.Nname = methodname1(f.Func.Shortname, t.Left.Right)
|
||||
f.Func.Nname = methodname(f.Func.Shortname, t.Left.Right)
|
||||
}
|
||||
|
||||
f.Func.Nname.Name.Defn = f
|
||||
|
|
@ -955,10 +955,6 @@ func (p *noder) newname(name *syntax.Name) *Node {
|
|||
return newname(p.name(name))
|
||||
}
|
||||
|
||||
func (p *noder) oldname(name *syntax.Name) *Node {
|
||||
return oldname(p.name(name))
|
||||
}
|
||||
|
||||
func (p *noder) wrapname(n syntax.Node, x *Node) *Node {
|
||||
// These nodes do not carry line numbers.
|
||||
// Introduce a wrapper node to give them the correct line.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue