diff --git a/NetNewsWire/MainWindow/Timeline/Cell/TimelineCellData.swift b/NetNewsWire/MainWindow/Timeline/Cell/TimelineCellData.swift index c4f389760..5db407f63 100644 --- a/NetNewsWire/MainWindow/Timeline/Cell/TimelineCellData.swift +++ b/NetNewsWire/MainWindow/Timeline/Cell/TimelineCellData.swift @@ -22,7 +22,7 @@ struct TimelineCellData { let read: Bool let starred: Bool - init(article: Article, appearance: TimelineCellAppearance, showFeedName: Bool, feedName: String?, avatar: NSImage?, showAvatar: Bool, featuredImage: NSImage?) { + init(article: Article, showFeedName: Bool, feedName: String?, avatar: NSImage?, showAvatar: Bool, featuredImage: NSImage?) { self.title = TimelineStringFormatter.truncatedTitle(article) self.text = TimelineStringFormatter.truncatedSummary(article) @@ -47,7 +47,6 @@ struct TimelineCellData { } init() { //Empty - self.title = "" self.text = "" self.dateString = "" diff --git a/NetNewsWire/MainWindow/Timeline/TimelineViewController.swift b/NetNewsWire/MainWindow/Timeline/TimelineViewController.swift index 5e1da1213..18cff4ef2 100644 --- a/NetNewsWire/MainWindow/Timeline/TimelineViewController.swift +++ b/NetNewsWire/MainWindow/Timeline/TimelineViewController.swift @@ -511,7 +511,7 @@ final class TimelineViewController: NSViewController, UndoableCommandRunner { let status = ArticleStatus(articleID: prototypeID, read: false, starred: false, userDeleted: false, dateArrived: Date()) let prototypeArticle = Article(accountID: prototypeID, articleID: prototypeID, feedID: prototypeID, uniqueID: prototypeID, title: longTitle, contentHTML: nil, contentText: nil, url: nil, externalURL: nil, summary: nil, imageURL: nil, bannerImageURL: nil, datePublished: nil, dateModified: nil, authors: nil, attachments: nil, status: status) - let prototypeCellData = TimelineCellData(article: prototypeArticle, appearance: cellAppearance, showFeedName: showingFeedNames, feedName: "Prototype Feed Name", avatar: nil, showAvatar: false, featuredImage: nil) + let prototypeCellData = TimelineCellData(article: prototypeArticle, showFeedName: showingFeedNames, feedName: "Prototype Feed Name", avatar: nil, showAvatar: false, featuredImage: nil) let height = TimelineCellLayout.height(for: 100, cellData: prototypeCellData, appearance: cellAppearance) return height } @@ -663,7 +663,7 @@ extension TimelineViewController: NSTableViewDelegate { } let featuredImage = featuredImageFor(article) - cell.cellData = TimelineCellData(article: article, appearance: cellAppearance, showFeedName: showFeedNames, feedName: article.feed?.nameForDisplay, avatar: avatar, showAvatar: showAvatars, featuredImage: featuredImage) + cell.cellData = TimelineCellData(article: article, showFeedName: showFeedNames, feedName: article.feed?.nameForDisplay, avatar: avatar, showAvatar: showAvatars, featuredImage: featuredImage) } private func avatarFor(_ article: Article) -> NSImage? {