go/ast: Walk: do not walk comment list

A comment to that effect was introduced
with rev d332f4b9cef5 but the respective
code wasn't deleted.

R=golang-dev, dsymonds
CC=golang-dev
https://golang.org/cl/6304086
This commit is contained in:
Robert Griesemer 2012-06-15 16:55:15 -07:00
parent 18b281978c
commit 417a7f80d2

View file

@ -344,9 +344,6 @@ func Walk(v Visitor, node Node) {
}
Walk(v, n.Name)
walkDeclList(v, n.Decls)
for _, g := range n.Comments {
Walk(v, g)
}
// don't walk n.Comments - they have been
// visited already through the individual
// nodes