importer/foursquare: remove unused initRoot function

Change-Id: I74537a28ee31bf5062322aea113453030950a077
This commit is contained in:
mpl 2014-04-18 22:16:36 +02:00
parent 09a80dff99
commit 98e895de45
1 changed files with 0 additions and 10 deletions

View File

@ -113,16 +113,6 @@ func (r *run) token() string {
return r.RunContext.AccountNode().Attr(acctAttrAccessToken)
}
func (r *run) initRoot() error {
root := r.RootNode()
user := r.AccountNode().Attr("foursquareUser")
if user == "" {
return errors.New("The 'foursquareUser' attribute on the account node is empty.")
}
title := fmt.Sprintf("Foursquare (%s)", user)
return root.SetAttr("title", title)
}
func (im *imp) Run(ctx *importer.RunContext) error {
clientId, secret, err := ctx.Credentials()
if err != nil {