go.tools/cmd/godoc: remove useless code from index.go

This code was moved to a throttle method on Corpus but I guess it was
never deleted.

LGTM=crawshaw
R=golang-codereviews, crawshaw
CC=golang-codereviews
https://golang.org/cl/102350043
This commit is contained in:
Andrew Gerrand 2014-06-13 12:42:11 +10:00
parent 6251f07ecd
commit 229ca526b7
1 changed files with 0 additions and 6 deletions

View File

@ -1446,12 +1446,6 @@ func (c *Corpus) UpdateIndex() {
log.Printf("updating index...")
}
start := time.Now()
throttle := c.IndexThrottle
if throttle <= 0 {
throttle = 0.9
} else if throttle > 1.0 {
throttle = 1.0
}
index := c.NewIndex()
stop := time.Now()
c.searchIndex.Set(index)