Skip to content

Commit

Permalink
Removed Swift 3 NSGeometry support
Browse files Browse the repository at this point in the history
  • Loading branch information
colemancda committed Nov 22, 2017
1 parent 8927a7c commit 6239656
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 59 deletions.
19 changes: 0 additions & 19 deletions Sources/Silica/CGPoint.swift

This file was deleted.

21 changes: 0 additions & 21 deletions Sources/Silica/CGRect.swift
Original file line number Diff line number Diff line change
Expand Up @@ -214,25 +214,4 @@ public extension CGRect {

}

// MARK: - Swift 3 compatibility

#if swift(>=4)

#elseif swift(>=3.0.2)

public extension CGRect {

public init(x: CGFloat, y: CGFloat, width: CGFloat, height: CGFloat) {

self.origin = CGPoint(x: x, y: y)
self.size = CGSize(width: width, height: height)
}

public static var zero: CGRect { return CGRect() }

public static var null: CGRect { return CGRect(x: CGFloat.nan, y: CGFloat.nan, width: CGFloat.nan, height: CGFloat.nan) }
}

#endif

#endif
19 changes: 0 additions & 19 deletions Sources/Silica/CGSize.swift

This file was deleted.

0 comments on commit 6239656

Please sign in to comment.