Skip to content

Commit 0906b18

Browse files
Remove Array extension (#165)
1 parent 1090531 commit 0906b18

File tree

2 files changed

+0
-13
lines changed

2 files changed

+0
-13
lines changed

Sources/Layout/LayoutItem.swift

-7
Original file line numberDiff line numberDiff line change
@@ -637,10 +637,3 @@ extension ViewLayoutItem: LayoutAnchoring {
637637
public var width: NSLayoutDimension { layoutItemView.width }
638638
public var height: NSLayoutDimension { layoutItemView.height }
639639
}
640-
641-
extension Array where Element == NSLayoutConstraint.Attribute {
642-
643-
public static let edges: [NSLayoutConstraint.Attribute] = [.top, .left, .bottom, .right]
644-
public static let vertical: [NSLayoutConstraint.Attribute] = [.top, .bottom]
645-
public static let horizontal: [NSLayoutConstraint.Attribute] = [.left, .right]
646-
}

Tests/LayoutTests/LayoutItemTests.swift

-6
Original file line numberDiff line numberDiff line change
@@ -709,10 +709,4 @@ final class LayoutItemTests: XCTestCase {
709709
expect(item.width) == item.layoutItemView.width
710710
expect(item.height) == item.layoutItemView.height
711711
}
712-
713-
func testLayoutConstraintAttributeArrayExtension() {
714-
expect([NSLayoutConstraint.Attribute].edges) == [.top, .left, .bottom, .right]
715-
expect([NSLayoutConstraint.Attribute].vertical) == [.top, .bottom]
716-
expect([NSLayoutConstraint.Attribute].horizontal) == [.left, .right]
717-
}
718712
}

0 commit comments

Comments
 (0)