mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
cmd: remove unused code
Generated with honnef.co/go/unused There is a large amount of unused code in cmd/internal/obj/s390x but that can wait til the s390x port is merged. There is some unused code in cmd/internal/unvendor/golang.org/x/arch/arm/armasm but that should be addressed upstream and a new revision imported. Change-Id: I252c0f9ea8c5bb1a0b530a374ef13a0a20ea56aa Reviewed-on: https://go-review.googlesource.com/21782 Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org> Run-TryBot: Dave Cheney <dave@cheney.net>
This commit is contained in:
parent
93368be61e
commit
bce9747ed0
17 changed files with 7 additions and 106 deletions
|
|
@ -170,9 +170,7 @@ type methodref struct {
|
|||
r [3]*Reloc // R_METHOD relocations to fields of runtime.method
|
||||
}
|
||||
|
||||
func (m methodref) mtyp() *LSym { return m.r[0].Sym }
|
||||
func (m methodref) ifn() *LSym { return m.r[1].Sym }
|
||||
func (m methodref) tfn() *LSym { return m.r[2].Sym }
|
||||
func (m methodref) ifn() *LSym { return m.r[1].Sym }
|
||||
|
||||
func (m methodref) isExported() bool {
|
||||
for _, r := range m.m {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue