From b5e7da4a16c82e64159ccf8eda8babcecef44b88 Mon Sep 17 00:00:00 2001 From: Andrew Gerrand Date: Mon, 3 Nov 2014 15:20:02 +1100 Subject: [PATCH] [release-branch.go1.3] go.tools/godoc: remove Google+ buttons MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ««« CL 138180043 / 9b1966d73f3f go.tools/godoc: remove Google+ buttons LGTM=bradfitz R=golang-codereviews, bradfitz, dsymonds CC=golang-codereviews https://golang.org/cl/138180043 »»» TBR=rsc R=rsc CC=golang-codereviews https://golang.org/cl/165390043 --- godoc/static/godoc.html | 1 - godoc/static/godocs.js | 10 ---------- godoc/static/static.go | 11 ----------- 3 files changed, 22 deletions(-) diff --git a/godoc/static/godoc.html b/godoc/static/godoc.html index ee6a3a6d..c851c528 100644 --- a/godoc/static/godoc.html +++ b/godoc/static/godoc.html @@ -61,7 +61,6 @@ func main() {
{{with .Title}} -

{{html .}}

{{end}} {{with .Subtitle}} diff --git a/godoc/static/godocs.js b/godoc/static/godocs.js index 81dd1210..c4a61e06 100644 --- a/godoc/static/godocs.js +++ b/godoc/static/godocs.js @@ -232,15 +232,6 @@ function toggleHash() { } } -function addPlusButtons() { - var po = document.createElement('script'); - po.type = 'text/javascript'; - po.async = true; - po.src = 'https://apis.google.com/js/platform.js'; - var s = document.getElementsByTagName('script')[0]; - s.parentNode.insertBefore(po, s); -} - $(document).ready(function() { bindSearchEvents(); generateTOC(); @@ -256,7 +247,6 @@ $(document).ready(function() { setupTypeInfo(); setupCallgraphs(); toggleHash(); - addPlusButtons(); // godoc.html defines window.initFuncs in the tag, and root.html and // codewalk.js push their on-page-ready functions to the list. diff --git a/godoc/static/static.go b/godoc/static/static.go index a6c2207e..95ba8568 100644 --- a/godoc/static/static.go +++ b/godoc/static/static.go @@ -535,7 +535,6 @@ func main() {
{{with .Title}} -

{{html .}}

{{end}} {{with .Subtitle}} @@ -811,15 +810,6 @@ function toggleHash() { } } -function addPlusButtons() { - var po = document.createElement('script'); - po.type = 'text/javascript'; - po.async = true; - po.src = 'https://apis.google.com/js/platform.js'; - var s = document.getElementsByTagName('script')[0]; - s.parentNode.insertBefore(po, s); -} - $(document).ready(function() { bindSearchEvents(); generateTOC(); @@ -835,7 +825,6 @@ $(document).ready(function() { setupTypeInfo(); setupCallgraphs(); toggleHash(); - addPlusButtons(); // godoc.html defines window.initFuncs in the tag, and root.html and // codewalk.js push their on-page-ready functions to the list.