Skip to content

Commit 9eb7ff2

Browse files
committed
Remove Int NSTimeInterval helpers
Double is IntegerLiteralConvertible, so 1.second, etc., still works without the Int extension.
1 parent 552b420 commit 9eb7ff2

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

Src/SwiftyTimer.swift

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -76,15 +76,6 @@ extension NSTimer {
7676
}
7777
}
7878

79-
extension Int {
80-
public var second: NSTimeInterval { return NSTimeInterval(self) }
81-
public var seconds: NSTimeInterval { return NSTimeInterval(self) }
82-
public var minute: NSTimeInterval { return NSTimeInterval(self * 60) }
83-
public var minutes: NSTimeInterval { return NSTimeInterval(self * 60) }
84-
public var hour: NSTimeInterval { return NSTimeInterval(self * 3600) }
85-
public var hours: NSTimeInterval { return NSTimeInterval(self * 3600) }
86-
}
87-
8879
extension Double {
8980
public var second: NSTimeInterval { return self }
9081
public var seconds: NSTimeInterval { return self }

0 commit comments

Comments
 (0)