mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
cmd/link, crypto/tls: don't use append loops
Change-Id: Ib47e295e8646b769c30fd81e5c7f20f964df163e Reviewed-on: https://go-review.googlesource.com/36335 Reviewed-by: Filippo Valsorda <hi@filippo.io> Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org> Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org>
This commit is contained in:
parent
e62aab1274
commit
99df7c9caa
2 changed files with 2 additions and 6 deletions
|
|
@ -254,9 +254,7 @@ func (d *deadcodepass) init() {
|
|||
}
|
||||
}
|
||||
}
|
||||
for _, name := range markextra {
|
||||
names = append(names, name)
|
||||
}
|
||||
names = append(names, markextra...)
|
||||
for _, s := range dynexp {
|
||||
d.mark(s, nil)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue