Skip to content

Commit

Permalink
Remove unused HorizontalAlignment cases
Browse files Browse the repository at this point in the history
  • Loading branch information
amerhukic committed Dec 25, 2018
1 parent 61ff18f commit e42563a
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions AHDownloadButton/Classes/AHDownloadButton.swift
Original file line number Diff line number Diff line change
Expand Up @@ -31,13 +31,11 @@ public final class AHDownloadButton: UIView {
}

public enum HorizontalAlignment: Int {
case trailing, leading, center, left, right
case center, left, right

var relativeLayoutAttribute: NSLayoutConstraint.Attribute {
switch self {
case .center: return .centerX
case .trailing: return .trailing
case .leading: return .leading
case .right: return .right
case .left: return .left
}
Expand Down

0 comments on commit e42563a

Please sign in to comment.