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:
Daniel Martí 2017-09-28 20:17:59 +01:00
parent 6bbe1bc940
commit ded2c65db3
5 changed files with 3 additions and 19 deletions

View file

@ -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.