godoc: remove disabled admin code
Change-Id: If3e2264b874c7a5447929888fed0ce6ad61f3475
Reviewed-on: https://go-review.googlesource.com/52291
Reviewed-by: Chris Broadfoot <cbro@golang.org>
diff --git a/godoc/dl/dl.go b/godoc/dl/dl.go
index b4230b6..3d2f6c4 100644
--- a/godoc/dl/dl.go
+++ b/godoc/dl/dl.go
@@ -32,7 +32,6 @@
"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 @@
type listTemplateData struct {
Featured []Feature
Stable, Unstable, Archive []Release
- LoginURL string
}
var (
@@ -218,11 +216,6 @@
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 e92f9b7..440917a 100644
--- a/godoc/dl/tmpl.go
+++ b/godoc/dl/tmpl.go
@@ -106,7 +106,7 @@
</p>
<p>
-If you are building from source,
+If you are building from source,
follow the <a href="/doc/install/source">source installation instructions</a>.
</p>
@@ -146,13 +146,6 @@
</div>
{{end}}
-
-<!-- Disabled for now; there's no admin functionality yet.
-<p>
-<small><a href="{{.LoginURL}}">π</a></small>
-</p>
--->
-
<div id="footer">
<p>
Except as