Skip to content

Commit 3ac2a5b

Browse files
committed
godoc: remove Corpus.testDir field
It was indeed unused. Updates golang/go#33655 Change-Id: Icb9b9a3d201cc573ae294063b64e38890f37b9ab Reviewed-on: https://go-review.googlesource.com/c/tools/+/196978 Reviewed-by: Agniva De Sarker <agniva.quicksilver@gmail.com> Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
1 parent 035fdb1 commit 3ac2a5b

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

godoc/corpus.go

+1-4
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ package godoc
66

77
import (
88
"errors"
9-
pathpkg "path"
109
"sync"
1110
"time"
1211

@@ -87,8 +86,6 @@ type Corpus struct {
8786
// If nil, all directories are indexed if indexing is enabled.
8887
IndexDirectory func(dir string) bool
8988

90-
testDir string // TODO(bradfitz,adg): migrate old godoc flag? looks unused.
91-
9289
// Send a value on this channel to trigger a metadata refresh.
9390
// It is buffered so that if a signal is not lost if sent
9491
// during a refresh.
@@ -158,7 +155,7 @@ func (c *Corpus) Init() error {
158155
}
159156

160157
func (c *Corpus) initFSTree() error {
161-
dir := c.newDirectory(pathpkg.Join("/", c.testDir), -1)
158+
dir := c.newDirectory("/", -1)
162159
if dir == nil {
163160
return errors.New("godoc: corpus fstree is nil")
164161
}

0 commit comments

Comments
 (0)