importer/foursquare: remove unused oauthConfig

Change-Id: Ic663ad97ab41515d52e330544a546d58e8cbe583
This commit is contained in:
mpl 2014-04-22 16:43:38 +02:00
parent 4094db0ddf
commit 33ba1ad928
1 changed files with 1 additions and 12 deletions

View File

@ -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 {