mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
cmd/compile: simplify a few bits of the code
Remove an unused type, a few redundant returns and replace a few slice append loops with a single append. Change-Id: If07248180bae5631b5b152c6051d9635889997d5 Reviewed-on: https://go-review.googlesource.com/66851 Run-TryBot: Daniel Martí <mvdan@mvdan.cc> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Dave Cheney <dave@cheney.net>
This commit is contained in:
parent
6bbe1bc940
commit
ded2c65db3
5 changed files with 3 additions and 19 deletions
|
|
@ -157,7 +157,6 @@ func init1(n *Node, out *[]*Node) {
|
|||
initlist = initlist[:last]
|
||||
|
||||
n.SetInitorder(InitDone)
|
||||
return
|
||||
}
|
||||
|
||||
// foundinitloop prints an init loop error and exits.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue