Skip to content

Commit

Permalink
godoc: remove Corpus.testDir field
Browse files Browse the repository at this point in the history
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 <[email protected]>
Reviewed-by: Brad Fitzpatrick <[email protected]>
  • Loading branch information
dmitshur authored and clintjedwards committed Sep 25, 2019
1 parent 3529a23 commit 45d1fe8
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions godoc/corpus.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ package godoc

import (
"errors"
pathpkg "path"
"sync"
"time"

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

testDir string // TODO(bradfitz,adg): migrate old godoc flag? looks unused.

// Send a value on this channel to trigger a metadata refresh.
// It is buffered so that if a signal is not lost if sent
// during a refresh.
Expand Down Expand Up @@ -158,7 +155,7 @@ func (c *Corpus) Init() error {
}

func (c *Corpus) initFSTree() error {
dir := c.newDirectory(pathpkg.Join("/", c.testDir), -1)
dir := c.newDirectory("/", -1)
if dir == nil {
return errors.New("godoc: corpus fstree is nil")
}
Expand Down

0 comments on commit 45d1fe8

Please sign in to comment.