From: Daniel Martí Date: Mon, 19 Feb 2018 19:18:25 +0000 (+0000) Subject: html/template: remove unused func X-Git-Tag: go1.11beta1~1557 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=a95c5f04f342f151fbcad8c9ccb6cab454cf08d5;p=gostls13.git 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í TryBot-Result: Gobot Gobot Reviewed-by: Ian Lance Taylor --- 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{