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:
parent
6251f07ecd
commit
229ca526b7
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in New Issue