mirror of
https://github.com/golang/go
synced 2024-11-02 13:42:29 +00:00
exp/html: remove unused forTag function.
R=adg CC=golang-dev https://golang.org/cl/6480051
This commit is contained in:
parent
37b40dab51
commit
8eb05b3843
1 changed files with 0 additions and 13 deletions
|
@ -146,16 +146,3 @@ func (s *nodeStack) remove(n *Node) {
|
|||
(*s)[j] = nil
|
||||
*s = (*s)[:j]
|
||||
}
|
||||
|
||||
// TODO(nigeltao): forTag no longer used. Should it be deleted?
|
||||
|
||||
// forTag returns the top-most element node with the given tag.
|
||||
func (s *nodeStack) forTag(tag string) *Node {
|
||||
for i := len(*s) - 1; i >= 0; i-- {
|
||||
n := (*s)[i]
|
||||
if n.Type == ElementNode && n.Data == tag {
|
||||
return n
|
||||
}
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue