mirror of https://github.com/perkeep/perkeep.git
importer/foursquare: remove unused oauthConfig
Change-Id: Ic663ad97ab41515d52e330544a546d58e8cbe583
This commit is contained in:
parent
4094db0ddf
commit
33ba1ad928
|
@ -104,8 +104,7 @@ func (im *imp) AccountSetupHTML(host *importer.Host) string {
|
||||||
// A run is our state for a given run of the importer.
|
// A run is our state for a given run of the importer.
|
||||||
type run struct {
|
type run struct {
|
||||||
*importer.RunContext
|
*importer.RunContext
|
||||||
im *imp
|
im *imp
|
||||||
oauthConfig *oauth.Config
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func (r *run) token() string {
|
func (r *run) token() string {
|
||||||
|
@ -113,19 +112,9 @@ func (r *run) token() string {
|
||||||
}
|
}
|
||||||
|
|
||||||
func (im *imp) Run(ctx *importer.RunContext) error {
|
func (im *imp) Run(ctx *importer.RunContext) error {
|
||||||
clientId, secret, err := ctx.Credentials()
|
|
||||||
if err != nil {
|
|
||||||
return err
|
|
||||||
}
|
|
||||||
r := &run{
|
r := &run{
|
||||||
RunContext: ctx,
|
RunContext: ctx,
|
||||||
im: im,
|
im: im,
|
||||||
oauthConfig: &oauth.Config{
|
|
||||||
ClientId: clientId,
|
|
||||||
ClientSecret: secret,
|
|
||||||
AuthURL: authURL,
|
|
||||||
TokenURL: tokenURL,
|
|
||||||
},
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if err := r.importCheckins(); err != nil {
|
if err := r.importCheckins(); err != nil {
|
||||||
|
|
Loading…
Reference in New Issue