Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
… into main
  • Loading branch information
brentsimmons committed Jan 23, 2021
2 parents 895f52b + ff90751 commit 98dfd88
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 22 deletions.
8 changes: 0 additions & 8 deletions Account/Sources/Account/Account.swift
Original file line number Diff line number Diff line change
Expand Up @@ -1134,14 +1134,6 @@ private extension Account {
return articles
}

func fetchUnreadArticlesAsync(for webFeed: WebFeed, completion: @escaping (Set<Article>) -> Void) {
// database.fetchUnreadArticlesAsync(for: Set([feed.feedID])) { [weak self] (articles) in
// self?.validateUnreadCount(feed, articles)
// callback(articles)
// }
}


func fetchArticles(forContainer container: Container) throws -> Set<Article> {
let feeds = container.flattenedWebFeeds()
let articles = try database.fetchArticles(feeds.webFeedIDs())
Expand Down
14 changes: 0 additions & 14 deletions Mac/MainWindow/Sidebar/SidebarViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -635,20 +635,6 @@ private extension SidebarViewController {
delegate?.sidebarInvalidatedRestorationState(self)
}

func updateUnreadCounts(for objects: [AnyObject]) {
// On selection, update unread counts for folders and feeds.
// For feeds, actually fetch from database.

for object in objects {
if let feed = object as? WebFeed, let account = feed.account {
account.updateUnreadCounts(for: Set([feed]))
}
else if let folder = object as? Folder, let account = folder.account {
account.updateUnreadCounts(for: folder.flattenedWebFeeds())
}
}
}

func nodeForItem(_ item: AnyObject?) -> Node {
if item == nil {
return treeController.rootNode
Expand Down

0 comments on commit 98dfd88

Please sign in to comment.