From 82d2319372b1cc0300a4734498cf8f7845f73462 Mon Sep 17 00:00:00 2001 From: Alan Maynard Date: Thu, 28 Mar 2019 17:19:44 -0400 Subject: [PATCH] SWF-21 Remove unused code - we previously moved these web service calls to `ExtensionDelegate` so they are no longer needed here --- .../MainMenuInterfaceController.swift | 21 +------------------ 1 file changed, 1 insertion(+), 20 deletions(-) diff --git a/SynchronyFinancial/SynchronyFinancial WatchKit Extension/MainMenuInterfaceController.swift b/SynchronyFinancial/SynchronyFinancial WatchKit Extension/MainMenuInterfaceController.swift index f9e9917..6bf2f46 100644 --- a/SynchronyFinancial/SynchronyFinancial WatchKit Extension/MainMenuInterfaceController.swift +++ b/SynchronyFinancial/SynchronyFinancial WatchKit Extension/MainMenuInterfaceController.swift @@ -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() {