mirror of https://github.com/golang/go.git
text/template: remove unused Tree.parse return value
Fixes #13993 Change-Id: Ic61b2bcd9f4f71457d3a8581574633d505d5750e Reviewed-on: https://go-review.googlesource.com/27240 Run-TryBot: Rob Pike <r@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Rob Pike <r@golang.org>
This commit is contained in:
parent
d1272a8b5c
commit
c3f05d9593
|
|
@ -277,7 +277,7 @@ func IsEmptyTree(n Node) bool {
|
|||
// parse is the top-level parser for a template, essentially the same
|
||||
// as itemList except it also parses {{define}} actions.
|
||||
// It runs to EOF.
|
||||
func (t *Tree) parse() (next Node) {
|
||||
func (t *Tree) parse() {
|
||||
t.Root = t.newList(t.peek().pos)
|
||||
for t.peek().typ != itemEOF {
|
||||
if t.peek().typ == itemLeftDelim {
|
||||
|
|
@ -299,7 +299,6 @@ func (t *Tree) parse() (next Node) {
|
|||
t.Root.append(n)
|
||||
}
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
// parseDefinition parses a {{define}} ... {{end}} template definition and
|
||||
|
|
|
|||
Loading…
Reference in New Issue