From 3ac2a5bbd98a82f5bdd8071d9e7a8cadcb72e17a Mon Sep 17 00:00:00 2001 From: Dmitri Shuralyov Date: Tue, 27 Aug 2019 09:43:50 -0400 Subject: [PATCH] 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 Reviewed-by: Brad Fitzpatrick --- godoc/corpus.go | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/godoc/corpus.go b/godoc/corpus.go index 94725e7371..f2167e7104 100644 --- a/godoc/corpus.go +++ b/godoc/corpus.go @@ -6,7 +6,6 @@ package godoc import ( "errors" - pathpkg "path" "sync" "time" @@ -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. @@ -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") }