aboutsummaryrefslogtreecommitdiff
path: root/src/html
diff options
context:
space:
mode:
authorDaniel Martí <mvdan@mvdan.cc>2018-02-19 19:18:25 +0000
committerDaniel Martí <mvdan@mvdan.cc>2018-02-19 20:58:45 +0000
commita95c5f04f342f151fbcad8c9ccb6cab454cf08d5 (patch)
treea5a0ae671c6669bb8ec80bed39162b0275dabeda /src/html
parentdfb0e4f6c744eb9bf629658bf7da313b2d1518e1 (diff)
downloadgo-a95c5f04f342f151fbcad8c9ccb6cab454cf08d5.tar.gz
go-a95c5f04f342f151fbcad8c9ccb6cab454cf08d5.zip
html/template: remove unused func
Noticed while reading some code. Change-Id: I63f8c7a453d4895583a8ffc13bec57385b6944aa Reviewed-on: https://go-review.googlesource.com/95195 Run-TryBot: Daniel Martí <mvdan@mvdan.cc> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Ian Lance Taylor <iant@golang.org>
Diffstat (limited to 'src/html')
-rw-r--r--src/html/template/escape.go10
1 files changed, 0 insertions, 10 deletions
diff --git a/src/html/template/escape.go b/src/html/template/escape.go
index 5963194be6..c77b23ae68 100644
--- a/src/html/template/escape.go
+++ b/src/html/template/escape.go
@@ -380,16 +380,6 @@ func appendCmd(cmds []*parse.CommandNode, cmd *parse.CommandNode) []*parse.Comma
return append(cmds, cmd)
}
-// indexOfStr is the first i such that eq(s, strs[i]) or -1 if s was not found.
-func indexOfStr(s string, strs []string, eq func(a, b string) bool) int {
- for i, t := range strs {
- if eq(s, t) {
- return i
- }
- }
- return -1
-}
-
// newIdentCmd produces a command containing a single identifier node.
func newIdentCmd(identifier string, pos parse.Pos) *parse.CommandNode {
return &parse.CommandNode{