X-Git-Url: http://www.git.cypherpunks.ru/?a=blobdiff_plain;f=src%2Fcmd%2Flink%2Finternal%2Floader%2Floader.go;h=5dd657b4d7fc7131a9c8bc8e0108f8654bd94d0b;hb=3f700ce4d2f9674e9091f5a33fa8860f9106d5c8;hp=617c6ba65a7c5a2dd6018b5e9dcd56ba587e4a47;hpb=993ca35bd43bee9af2db700ac658b0fee896fa4d;p=gostls13.git diff --git a/src/cmd/link/internal/loader/loader.go b/src/cmd/link/internal/loader/loader.go index 617c6ba65a..5dd657b4d7 100644 --- a/src/cmd/link/internal/loader/loader.go +++ b/src/cmd/link/internal/loader/loader.go @@ -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)