]> Cypherpunks.ru repositories - gostls13.git/blobdiff - src/cmd/link/internal/loader/loader.go
cmd/link/internal/loader: remove some dead code
[gostls13.git] / src / cmd / link / internal / loader / loader.go
index 617c6ba65a7c5a2dd6018b5e9dcd56ba587e4a47..5dd657b4d7fc7131a9c8bc8e0108f8654bd94d0b 100644 (file)
@@ -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)