Use synthesized Equatable.

This commit is contained in:
Brent Simmons 2018-08-25 16:46:54 -07:00
parent 96f118853d
commit 24a6fae370

View File

@ -26,10 +26,5 @@ struct SidebarCellAppearance: Equatable {
self.imageMarginRight = theme.float(forKey: "MainWindow.SourceList.favicon.marginRight") self.imageMarginRight = theme.float(forKey: "MainWindow.SourceList.favicon.marginRight")
self.unreadCountMarginLeft = theme.float(forKey: "MainWindow.SourceList.unreadCount.marginLeft") self.unreadCountMarginLeft = theme.float(forKey: "MainWindow.SourceList.unreadCount.marginLeft")
} }
static func ==(lhs: SidebarCellAppearance, rhs: SidebarCellAppearance) -> Bool {
return lhs.imageSize == rhs.imageSize && lhs.imageMarginRight == rhs.imageMarginRight && lhs.unreadCountMarginLeft == rhs.unreadCountMarginLeft && lhs.textFieldFontSize == rhs.textFieldFontSize
}
} }