removed unneccessary equatable comformance from RepositoryLabel (#743)

This commit is contained in:
Joe Rocca
2017-10-27 10:48:45 -04:00
committed by Ryan Nystrom
parent 1ef1796472
commit 26af98bad6

View File

@@ -9,7 +9,7 @@
import Foundation
import IGListKit
final class RepositoryLabel: ListDiffable, Equatable {
final class RepositoryLabel: ListDiffable {
let color: String
let name: String
@@ -30,12 +30,5 @@ final class RepositoryLabel: ListDiffable, Equatable {
guard let object = object as? RepositoryLabel else { return false }
return color == object.color
}
//MARK: Equatable
static func ==(lhs: RepositoryLabel, rhs: RepositoryLabel) -> Bool {
return lhs.name == rhs.name
&& lhs.color == rhs.color
}
}