From a95c5f04f342f151fbcad8c9ccb6cab454cf08d5 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Daniel=20Mart=C3=AD?= Date: Mon, 19 Feb 2018 19:18:25 +0000 Subject: [PATCH] html/template: remove unused func MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit 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 --- src/html/template/escape.go | 10 ---------- 1 file changed, 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{ -- 2.50.0