From: Nigel Tao Date: Fri, 24 Aug 2012 04:15:55 +0000 (+1000) Subject: exp/html: remove unused forTag function. X-Git-Tag: go1.1rc2~2594 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=8eb05b38434ddd5ee07e2ea564192b91599f4239;p=gostls13.git exp/html: remove unused forTag function. R=adg CC=golang-dev https://golang.org/cl/6480051 --- diff --git a/src/pkg/exp/html/node.go b/src/pkg/exp/html/node.go index 65fa558b24..46c21417d7 100644 --- a/src/pkg/exp/html/node.go +++ b/src/pkg/exp/html/node.go @@ -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 -}