From 33ba1ad928e28eafe1b896b3f7099e2f06f49dbc Mon Sep 17 00:00:00 2001 From: mpl Date: Tue, 22 Apr 2014 16:43:38 +0200 Subject: [PATCH] importer/foursquare: remove unused oauthConfig Change-Id: Ic663ad97ab41515d52e330544a546d58e8cbe583 --- pkg/importer/foursquare/foursquare.go | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/pkg/importer/foursquare/foursquare.go b/pkg/importer/foursquare/foursquare.go index 91a2c7791..f89afb05e 100644 --- a/pkg/importer/foursquare/foursquare.go +++ b/pkg/importer/foursquare/foursquare.go @@ -104,8 +104,7 @@ func (im *imp) AccountSetupHTML(host *importer.Host) string { // A run is our state for a given run of the importer. type run struct { *importer.RunContext - im *imp - oauthConfig *oauth.Config + im *imp } func (r *run) token() string { @@ -113,19 +112,9 @@ func (r *run) token() string { } func (im *imp) Run(ctx *importer.RunContext) error { - clientId, secret, err := ctx.Credentials() - if err != nil { - return err - } r := &run{ RunContext: ctx, im: im, - oauthConfig: &oauth.Config{ - ClientId: clientId, - ClientSecret: secret, - AuthURL: authURL, - TokenURL: tokenURL, - }, } if err := r.importCheckins(); err != nil {