Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
SWF-17 remove unused code
- also changed `wellnessScore` to not be optional
  • Loading branch information
ahm11003 committed Apr 23, 2019
1 parent 4a55d89 commit d170909
Showing 1 changed file with 2 additions and 14 deletions.
Expand Up @@ -11,9 +11,7 @@ import Foundation

class WellnessInterfaceController: WKInterfaceController {
var accounts: [Account] = []
var transactions: [Transaction] = []
var transactionDict: [String: [Transaction]] = [:]
var wellnessScore: Int?
var wellnessScore: Int = 0
var utilizationScore: Int = 0
var previousUtil: Int = 0

Expand All @@ -30,17 +28,7 @@ class WellnessInterfaceController: WKInterfaceController {
calculateWellness()

image.setImageNamed("scores")
image.startAnimatingWithImages(in: NSRange(location: 1, length: wellnessScore ?? 0), duration: 1.5, repeatCount: 1)
}

override func willActivate() {
// This method is called when watch view controller is about to be visible to user
super.willActivate()
}

override func didDeactivate() {
// This method is called when watch view controller is no longer visible
super.didDeactivate()
image.startAnimatingWithImages(in: NSRange(location: 1, length: wellnessScore), duration: 1.5, repeatCount: 1)
}

private func calculateUtilization() {
Expand Down

0 comments on commit d170909

Please sign in to comment.