From 229ca526b776e254ab77c6b62230c0b37f7346f4 Mon Sep 17 00:00:00 2001 From: Andrew Gerrand Date: Fri, 13 Jun 2014 12:42:11 +1000 Subject: [PATCH] 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 --- godoc/index.go | 6 ------ 1 file changed, 6 deletions(-) diff --git a/godoc/index.go b/godoc/index.go index eb5182de..944343c5 100644 --- a/godoc/index.go +++ b/godoc/index.go @@ -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)