Remove some commented-out code.
This commit is contained in:
parent
994426ffa1
commit
1e250839c3
|
@ -75,21 +75,6 @@ private func rectForFeedName(_ cellData: TimelineCellData, _ width: CGFloat, _ a
|
||||||
return r
|
return r
|
||||||
}
|
}
|
||||||
|
|
||||||
//private func rectForFavicon(_ cellData: TimelineCellData, _ appearance: TimelineCellAppearance, _ feedNameRect: NSRect, _ unreadIndicatorRect: NSRect) -> NSRect {
|
|
||||||
//
|
|
||||||
// guard let _ = cellData.favicon, cellData.showFeedName else {
|
|
||||||
// return NSZeroRect
|
|
||||||
// }
|
|
||||||
//
|
|
||||||
// var r = NSZeroRect
|
|
||||||
// r.size = appearance.faviconSize
|
|
||||||
// r.origin.y = feedNameRect.origin.y
|
|
||||||
//
|
|
||||||
// r = RSRectCenteredHorizontallyInRect(r, unreadIndicatorRect)
|
|
||||||
//
|
|
||||||
// return r
|
|
||||||
//}
|
|
||||||
|
|
||||||
private func rectsForTitle(_ cellData: TimelineCellData, _ width: CGFloat, _ appearance: TimelineCellAppearance) -> (NSRect, NSRect) {
|
private func rectsForTitle(_ cellData: TimelineCellData, _ width: CGFloat, _ appearance: TimelineCellAppearance) -> (NSRect, NSRect) {
|
||||||
|
|
||||||
var r = NSZeroRect
|
var r = NSZeroRect
|
||||||
|
@ -150,7 +135,6 @@ func timelineCellLayout(_ width: CGFloat, cellData: TimelineCellData, appearance
|
||||||
let feedNameRect = rectForFeedName(cellData, width, appearance, dateRect)
|
let feedNameRect = rectForFeedName(cellData, width, appearance, dateRect)
|
||||||
let unreadIndicatorRect = rectForUnreadIndicator(cellData, appearance, titleLine1Rect)
|
let unreadIndicatorRect = rectForUnreadIndicator(cellData, appearance, titleLine1Rect)
|
||||||
let starRect = rectForStar(cellData, appearance, unreadIndicatorRect)
|
let starRect = rectForStar(cellData, appearance, unreadIndicatorRect)
|
||||||
// let faviconRect = rectForFavicon(cellData, appearance, feedNameRect, unreadIndicatorRect)
|
|
||||||
let avatarImageRect = rectForAvatar(cellData, appearance, titleLine1Rect)
|
let avatarImageRect = rectForAvatar(cellData, appearance, titleLine1Rect)
|
||||||
|
|
||||||
return TimelineCellLayout(width: width, feedNameRect: feedNameRect, dateRect: dateRect, titleRect: titleRect, unreadIndicatorRect: unreadIndicatorRect, starRect: starRect, avatarImageRect: avatarImageRect, paddingBottom: appearance.cellPadding.bottom)
|
return TimelineCellLayout(width: width, feedNameRect: feedNameRect, dateRect: dateRect, titleRect: titleRect, unreadIndicatorRect: unreadIndicatorRect, starRect: starRect, avatarImageRect: avatarImageRect, paddingBottom: appearance.cellPadding.bottom)
|
||||||
|
|
Loading…
Reference in New Issue