Remove unused argument to TimelineCellData.init.
This commit is contained in:
parent
e04250f1b3
commit
96ab26f82e
|
@ -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 = ""
|
||||
|
|
|
@ -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? {
|
||||
|
|
Loading…
Reference in New Issue