mirror of
https://github.com/golang/go
synced 2024-11-18 09:54:57 -07:00
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>
This commit is contained in:
parent
dfb0e4f6c7
commit
a95c5f04f3
@ -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{
|
||||
|
Loading…
Reference in New Issue
Block a user