aboutsummaryrefslogtreecommitdiff
path: root/src/pkg/text/template/parse
diff options
context:
space:
mode:
authorRob Pike <r@golang.org>2013-08-03 16:01:04 +1000
committerRob Pike <r@golang.org>2013-08-03 16:01:04 +1000
commit16c9d3616af86c7d150894f6ddd9fa527d9eda9a (patch)
tree72be369302e21a61e1e71ad395cbc0ba87e43233 /src/pkg/text/template/parse
parent8a7def2b3b8fc801eb4f02e58328e84ee311910e (diff)
downloadgo-16c9d3616af86c7d150894f6ddd9fa527d9eda9a.tar.xz
various: deleted unused items
R=golang-dev, dsymonds CC=golang-dev https://golang.org/cl/12396043
Diffstat (limited to 'src/pkg/text/template/parse')
-rw-r--r--src/pkg/text/template/parse/parse.go22
1 files changed, 0 insertions, 22 deletions
diff --git a/src/pkg/text/template/parse/parse.go b/src/pkg/text/template/parse/parse.go
index 802e298c23..2919124d3b 100644
--- a/src/pkg/text/template/parse/parse.go
+++ b/src/pkg/text/template/parse/parse.go
@@ -14,7 +14,6 @@ import (
"runtime"
"strconv"
"strings"
- "unicode"
)
// Tree is the representation of a single parsed template.
@@ -200,27 +199,6 @@ func (t *Tree) stopParse() {
t.funcs = nil
}
-// atEOF returns true if, possibly after spaces, we're at EOF.
-func (t *Tree) atEOF() bool {
- for {
- token := t.peek()
- switch token.typ {
- case itemEOF:
- return true
- case itemText:
- for _, r := range token.val {
- if !unicode.IsSpace(r) {
- return false
- }
- }
- t.next() // skip spaces.
- continue
- }
- break
- }
- return false
-}
-
// Parse parses the template definition string to construct a representation of
// the template for execution. If either action delimiter string is empty, the
// default ("{{" or "}}") is used. Embedded template definitions are added to