Remove unused code

This commit is contained in:
Robert Payne 2016-08-16 22:53:17 +12:00
parent bd6643ff54
commit a772f08051
1 changed files with 15 additions and 15 deletions

View File

@ -207,18 +207,18 @@ public class Constraint {
}
}
extension Constraint: Hashable {
public var hashValue: Int {
return self.layoutConstraints.hashValue
}
}
public func ==(lhs: Constraint, rhs: Constraint) -> Bool {
return (lhs.from == rhs.from &&
lhs.to == rhs.to &&
lhs.relation == rhs.relation &&
lhs.multiplier.constraintMultiplierTargetValue == rhs.multiplier.constraintMultiplierTargetValue &&
lhs.priority.constraintPriorityTargetValue == rhs.priority.constraintPriorityTargetValue)
}
//extension Constraint: Hashable {
//
// public var hashValue: Int {
// return self.layoutConstraints.hashValue
// }
//
//}
//
//public func ==(lhs: Constraint, rhs: Constraint) -> Bool {
// return (lhs.from == rhs.from &&
// lhs.to == rhs.to &&
// lhs.relation == rhs.relation &&
// lhs.multiplier.constraintMultiplierTargetValue == rhs.multiplier.constraintMultiplierTargetValue &&
// lhs.priority.constraintPriorityTargetValue == rhs.priority.constraintPriorityTargetValue)
//}