mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
cmd/link/internal/loader: remove some dead code
Get rid of a couple of unused methods in the loader and symbol builder. Change-Id: I3822891757dc56356295a9bc99545b725d485eac Reviewed-on: https://go-review.googlesource.com/c/go/+/540260 Reviewed-by: Cherry Mui <cherryyz@google.com> LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
This commit is contained in:
parent
993ca35bd4
commit
3f700ce4d2
2 changed files with 0 additions and 12 deletions
|
|
@ -1316,14 +1316,6 @@ func (l *Loader) SetSymSect(i Sym, sect *sym.Section) {
|
|||
l.symSects[i] = sect.Index
|
||||
}
|
||||
|
||||
// growSects grows the slice used to store symbol sections.
|
||||
func (l *Loader) growSects(reqLen int) {
|
||||
curLen := len(l.symSects)
|
||||
if reqLen > curLen {
|
||||
l.symSects = append(l.symSects, make([]uint16, reqLen+1-curLen)...)
|
||||
}
|
||||
}
|
||||
|
||||
// NewSection creates a new (output) section.
|
||||
func (l *Loader) NewSection() *sym.Section {
|
||||
sect := new(sym.Section)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue