Skip to content

Commit

Permalink
Remove println
Browse files Browse the repository at this point in the history
  • Loading branch information
gmertk committed Jul 17, 2015
1 parent f380fc3 commit 9bc287a
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 14 deletions.
26 changes: 13 additions & 13 deletions GMStepper/GMStepper.swift
Original file line number Diff line number Diff line change
Expand Up @@ -233,19 +233,6 @@ import UIKit
}
}

/// Useful for logging the timer interval. You can call this in the timer handler to test the autorepeat option. Not used in the current implementation.
lazy var printTimerGaps: () -> () = {
var prevTime: CFAbsoluteTime?

return { _ in
var now = CFAbsoluteTimeGetCurrent()
if let prevTime = prevTime {
println(now - prevTime)
}
prevTime = now
}
}()

required public init(coder aDecoder: NSCoder) {
super.init(coder: aDecoder)
setup()
Expand Down Expand Up @@ -293,6 +280,19 @@ import UIKit
resetTimer()
NSNotificationCenter.defaultCenter().removeObserver(self)
}

/// Useful closure for logging the timer interval. You can call this in the timer handler to test the autorepeat option. Not used in the current implementation.
// lazy var printTimerGaps: () -> () = {
// var prevTime: CFAbsoluteTime?
//
// return { _ in
// var now = CFAbsoluteTimeGetCurrent()
// if let prevTime = prevTime {
// print(now - prevTime)
// }
// prevTime = now
// }
// }()
}

// MARK: Pan Gesture
Expand Down
2 changes: 1 addition & 1 deletion GMStepperExample/GMStepperExample/ViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,6 @@ class ViewController: UIViewController {
}

func stepperValueChanged(stepper: GMStepper) {
println(stepper.value)
print(stepper.value)
}
}

0 comments on commit 9bc287a

Please sign in to comment.