From 08da88d2714e44bffda720342aa4d3ff010e7788 Mon Sep 17 00:00:00 2001 From: Andrew Bonventre Date: Thu, 4 Jan 2018 19:52:29 -0500 Subject: [PATCH] godoc/proxy: remove unused cacheKey function Change-Id: Ic7392e973de4a8c9232e9c55ed76c4ca799d68b4 Reviewed-on: https://go-review.googlesource.com/86315 Reviewed-by: Brad Fitzpatrick --- godoc/proxy/proxy.go | 8 -------- 1 file changed, 8 deletions(-) diff --git a/godoc/proxy/proxy.go b/godoc/proxy/proxy.go index 08795e9cd..cdac3bf53 100644 --- a/godoc/proxy/proxy.go +++ b/godoc/proxy/proxy.go @@ -10,10 +10,8 @@ package proxy import ( "bytes" - "crypto/sha1" "encoding/json" "fmt" - "io" "io/ioutil" "net/http" "net/http/httputil" @@ -121,12 +119,6 @@ func flatten(seq []Event) string { return buf.String() } -func cacheKey(body string) string { - h := sha1.New() - io.WriteString(h, body) - return fmt.Sprintf("prog-%x", h.Sum(nil)) -} - func share(w http.ResponseWriter, r *http.Request) { if googleCN(r) { http.Error(w, http.StatusText(http.StatusForbidden), http.StatusForbidden)