From 9eb7ff2d492c353328ea6fac84165bf8b8259a68 Mon Sep 17 00:00:00 2001 From: Stephen Celis Date: Mon, 11 May 2015 10:50:10 -0400 Subject: [PATCH] Remove Int NSTimeInterval helpers Double is IntegerLiteralConvertible, so 1.second, etc., still works without the Int extension. --- Src/SwiftyTimer.swift | 9 --------- 1 file changed, 9 deletions(-) diff --git a/Src/SwiftyTimer.swift b/Src/SwiftyTimer.swift index 6a544f5..70d4379 100644 --- a/Src/SwiftyTimer.swift +++ b/Src/SwiftyTimer.swift @@ -76,15 +76,6 @@ extension NSTimer { } } -extension Int { - public var second: NSTimeInterval { return NSTimeInterval(self) } - public var seconds: NSTimeInterval { return NSTimeInterval(self) } - public var minute: NSTimeInterval { return NSTimeInterval(self * 60) } - public var minutes: NSTimeInterval { return NSTimeInterval(self * 60) } - public var hour: NSTimeInterval { return NSTimeInterval(self * 3600) } - public var hours: NSTimeInterval { return NSTimeInterval(self * 3600) } -} - extension Double { public var second: NSTimeInterval { return self } public var seconds: NSTimeInterval { return self }