aboutsummaryrefslogtreecommitdiff
path: root/src/text/template/parse/parse.go
diff options
context:
space:
mode:
authorJess Frazelle <me@jessfraz.com>2016-08-17 13:27:17 -0700
committerRob Pike <r@golang.org>2016-08-17 22:36:27 +0000
commitc3f05d95932c0d3d2b8461099ce82fa917c7b8a3 (patch)
treecbe111a2e1ba1968a48520a4e5fa66503a1f69d3 /src/text/template/parse/parse.go
parentd1272a8b5c429ed1f43f2935adcb6366abc80c05 (diff)
downloadgo-c3f05d95932c0d3d2b8461099ce82fa917c7b8a3.tar.xz
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>
Diffstat (limited to 'src/text/template/parse/parse.go')
-rw-r--r--src/text/template/parse/parse.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/text/template/parse/parse.go b/src/text/template/parse/parse.go
index 86705e5a37..893564b983 100644
--- a/src/text/template/parse/parse.go
+++ b/src/text/template/parse/parse.go
@@ -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