From 6fdd948b8189c73f33b89f4fafb3d1275db66b89 Mon Sep 17 00:00:00 2001 From: Andrew Bonventre Date: Mon, 31 Jul 2017 16:04:46 -0400 Subject: [PATCH] godoc: remove disabled admin code Change-Id: If3e2264b874c7a5447929888fed0ce6ad61f3475 Reviewed-on: https://go-review.googlesource.com/52291 Reviewed-by: Chris Broadfoot --- godoc/dl/dl.go | 7 ------- godoc/dl/tmpl.go | 9 +-------- 2 files changed, 1 insertion(+), 15 deletions(-) diff --git a/godoc/dl/dl.go b/godoc/dl/dl.go index b4230b610a..3d2f6c46d8 100644 --- a/godoc/dl/dl.go +++ b/godoc/dl/dl.go @@ -32,7 +32,6 @@ import ( "google.golang.org/appengine/datastore" "google.golang.org/appengine/log" "google.golang.org/appengine/memcache" - "google.golang.org/appengine/user" ) const ( @@ -183,7 +182,6 @@ var featuredFiles = []Feature{ type listTemplateData struct { Featured []Feature Stable, Unstable, Archive []Release - LoginURL string } var ( @@ -218,11 +216,6 @@ func listHandler(w http.ResponseWriter, r *http.Request) { d.Featured = filesToFeatured(d.Stable[0].Files) } - d.LoginURL, _ = user.LoginURL(c, "/dl") - if user.Current(c) != nil { - d.LoginURL, _ = user.LogoutURL(c, "/dl") - } - item := &memcache.Item{Key: cacheKey, Object: &d, Expiration: cacheDuration} if err := memcache.Gob.Set(c, item); err != nil { log.Errorf(c, "cache set error: %v", err) diff --git a/godoc/dl/tmpl.go b/godoc/dl/tmpl.go index e92f9b76dd..440917abfc 100644 --- a/godoc/dl/tmpl.go +++ b/godoc/dl/tmpl.go @@ -106,7 +106,7 @@ please follow the installation instructions.

-If you are building from source, +If you are building from source, follow the source installation instructions.

@@ -146,13 +146,6 @@ information about Go releases. {{end}} - - -