[release-branch.go1.3] go.tools/godoc: remove Google+ buttons

««« 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
diff --git a/godoc/static/godoc.html b/godoc/static/godoc.html
index ee6a3a6..c851c52 100644
--- a/godoc/static/godoc.html
+++ b/godoc/static/godoc.html
@@ -61,7 +61,6 @@
 <div class="container">
 
 {{with .Title}}
-  <div id="plusone"><g:plusone size="small" annotation="none"></g:plusone></div>
   <h1>{{html .}}</h1>
 {{end}}
 {{with .Subtitle}}
diff --git a/godoc/static/godocs.js b/godoc/static/godocs.js
index 81dd121..c4a61e0 100644
--- a/godoc/static/godocs.js
+++ b/godoc/static/godocs.js
@@ -232,15 +232,6 @@
     }
 }
 
-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 @@
   setupTypeInfo();
   setupCallgraphs();
   toggleHash();
-  addPlusButtons();
 
   // godoc.html defines window.initFuncs in the <head> 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 a6c2207..95ba856 100644
--- a/godoc/static/static.go
+++ b/godoc/static/static.go
@@ -535,7 +535,6 @@
 <div class="container">
 
 {{with .Title}}
-  <div id="plusone"><g:plusone size="small" annotation="none"></g:plusone></div>
   <h1>{{html .}}</h1>
 {{end}}
 {{with .Subtitle}}
@@ -811,15 +810,6 @@
     }
 }
 
-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 @@
   setupTypeInfo();
   setupCallgraphs();
   toggleHash();
-  addPlusButtons();
 
   // godoc.html defines window.initFuncs in the <head> tag, and root.html and
   // codewalk.js push their on-page-ready functions to the list.