Commit 99df7c9c authored by Daniel Martí's avatar Daniel Martí Committed by Brad Fitzpatrick

cmd/link, crypto/tls: don't use append loops

Change-Id: Ib47e295e8646b769c30fd81e5c7f20f964df163e
Reviewed-on: https://go-review.googlesource.com/36335Reviewed-by: 's avatarFilippo Valsorda <hi@filippo.io>
Reviewed-by: 's avatarBrad Fitzpatrick <bradfitz@golang.org>
Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
parent e62aab12
......@@ -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)
}
......
......@@ -946,9 +946,7 @@ func initDefaultCipherSuites() {
}
varDefaultCipherSuites = make([]uint16, 0, len(cipherSuites))
for _, topCipher := range topCipherSuites {
varDefaultCipherSuites = append(varDefaultCipherSuites, topCipher)
}
varDefaultCipherSuites = append(varDefaultCipherSuites, topCipherSuites...)
NextCipherSuite:
for _, suite := range cipherSuites {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment