summaryrefslogtreecommitdiffstats
path: root/modules/oauth2/oauth2.go
diff options
context:
space:
mode:
Diffstat (limited to 'modules/oauth2/oauth2.go')
-rw-r--r--modules/oauth2/oauth2.go6
1 files changed, 0 insertions, 6 deletions
diff --git a/modules/oauth2/oauth2.go b/modules/oauth2/oauth2.go
index 05ae4606a5..dcb6d0a434 100644
--- a/modules/oauth2/oauth2.go
+++ b/modules/oauth2/oauth2.go
@@ -9,7 +9,6 @@ package oauth2
import (
"encoding/json"
- "fmt"
"net/http"
"net/url"
"strings"
@@ -95,11 +94,6 @@ func (t *token) ExpiryTime() time.Time {
return t.Expiry
}
-// Formats tokens into string.
-func (t *token) String() string {
- return fmt.Sprintf("tokens: %v", t)
-}
-
// Returns a new Google OAuth 2.0 backend endpoint.
func Google(opts *Options) martini.Handler {
opts.AuthUrl = "https://accounts.google.com/o/oauth2/auth"