Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
SWF-21 Remove unused code
- we previously moved these web service calls to `ExtensionDelegate` so they are no longer needed here
  • Loading branch information
ahm11003 committed Mar 28, 2019
1 parent 2c01f37 commit 82d2319
Showing 1 changed file with 1 addition and 20 deletions.
Expand Up @@ -25,30 +25,11 @@ class MainMenuInterfaceController: WKInterfaceController {
accountsButton.setHidden(true)
wellnessButton.setHidden(true)
activityIndicator.configureForActivityIndicator()
NSLog("Error getting context from WKExtensionDelegate")
NSLog("Error getting context from WKExtensionDelegate, showing activity indicator")
return
}

acctDict.updateValue(accts, forKey: "accts")
// We should find a better place for this call, just for testing purposes
// FetchData.attemptLogin { result, error in
// switch result {
// case true:
// FetchData.getAccountInfo { accounts, error in
// guard error == nil else {
// NSLog("Account Retrieval Error: %s", error?.localizedDescription ?? "")
// return
// }
//
// self.acctDict["accts"] = accounts
// }
// case false:
// NSLog("Login Error: %s", error?.localizedDescription ?? "Unknown Error")
// }
// }
//just here for testing. Should be moved into the accounts controller when that branch is merged
// FetchData.getAccountInfo()
}

override func willActivate() {
Expand Down

0 comments on commit 82d2319

Please sign in to comment.