mirror of
https://github.com/golang/go
synced 2024-11-18 19:54:44 -07:00
go/doc: remove unused tok parameter
Found via github.com/mvdan/unparam. Change-Id: I12cb0c35b14c880425c347fb3eb146712a86f310 Reviewed-on: https://go-review.googlesource.com/37834 Reviewed-by: Robert Griesemer <gri@golang.org> Run-TryBot: Robert Griesemer <gri@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org>
This commit is contained in:
parent
9600c32cc5
commit
2ec77d3457
@ -150,7 +150,7 @@ func (r *reader) filterType(parent *namedType, typ ast.Expr) {
|
||||
}
|
||||
}
|
||||
|
||||
func (r *reader) filterSpec(spec ast.Spec, tok token.Token) bool {
|
||||
func (r *reader) filterSpec(spec ast.Spec) bool {
|
||||
switch s := spec.(type) {
|
||||
case *ast.ImportSpec:
|
||||
// always keep imports so we can collect them
|
||||
@ -215,7 +215,7 @@ func (r *reader) filterSpecList(list []ast.Spec, tok token.Token) []ast.Spec {
|
||||
|
||||
j := 0
|
||||
for _, s := range list {
|
||||
if r.filterSpec(s, tok) {
|
||||
if r.filterSpec(s) {
|
||||
list[j] = s
|
||||
j++
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user