summaryrefslogtreecommitdiffstats
path: root/modules/oauth2
diff options
context:
space:
mode:
authorUnknown <joe2010xtmf@163.com>2014-04-13 03:14:43 -0400
committerUnknown <joe2010xtmf@163.com>2014-04-13 03:14:43 -0400
commit9d983f27d69b72f42eeb833cb0f38e78e3819839 (patch)
tree41fe885c7ee0a2ddfca1e3f2c8597b692167ead7 /modules/oauth2
parent5c2da610a2cfd3fa9666d20739e054c3588b4d05 (diff)
downloadgitea-9d983f27d69b72f42eeb833cb0f38e78e3819839.tar.gz
gitea-9d983f27d69b72f42eeb833cb0f38e78e3819839.zip
go vet
Diffstat (limited to 'modules/oauth2')
-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"