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
|
|
@ -337,24 +337,6 @@ func datagostring(sval string, a *obj.Addr) {
|
|||
a.Etype = uint8(TSTRING)
|
||||
}
|
||||
|
||||
func dgostringptr(s *Sym, off int, str string) int {
|
||||
if str == "" {
|
||||
return duintptr(s, off, 0)
|
||||
}
|
||||
return dgostrlitptr(s, off, &str)
|
||||
}
|
||||
|
||||
func dgostrlitptr(s *Sym, off int, lit *string) int {
|
||||
if lit == nil {
|
||||
return duintptr(s, off, 0)
|
||||
}
|
||||
off = int(Rnd(int64(off), int64(Widthptr)))
|
||||
symhdr, _ := stringsym(*lit)
|
||||
Linksym(s).WriteAddr(Ctxt, int64(off), Widthptr, symhdr, 0)
|
||||
off += Widthptr
|
||||
return off
|
||||
}
|
||||
|
||||
func dsname(s *Sym, off int, t string) int {
|
||||
return dsnameLSym(Linksym(s), off, t)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue