mirror of
https://github.com/Ranchero-Software/NetNewsWire
synced 2026-12-01 01:40:22 +00:00
🔥 Removes unused code (fixes #4720)
This commit is contained in:
13 files changed
+2
-2503
No files matched your search
@@ -327,7 +327,6 @@ class MainTimelineViewController: UITableViewController, UndoableCommandRunner {
|
||||
|
||||
func updateUI() {
|
||||
refreshProgressView?.update()
|
||||
updateTitleUnreadCount()
|
||||
updateToolbar()
|
||||
}
|
||||
|
||||
@@ -549,11 +548,7 @@ class MainTimelineViewController: UITableViewController, UndoableCommandRunner {
|
||||
}
|
||||
|
||||
@objc func webFeedIconDidBecomeAvailable(_ note: Notification) {
|
||||
|
||||
if let titleView = navigationItem.titleView as? MainTimelineTitleView {
|
||||
titleView.iconView?.iconImage = timelineIconImage
|
||||
}
|
||||
|
||||
|
||||
guard let feed = note.userInfo?[UserInfoKey.webFeed] as? WebFeed else {
|
||||
return
|
||||
}
|
||||
@@ -586,9 +581,6 @@ class MainTimelineViewController: UITableViewController, UndoableCommandRunner {
|
||||
}
|
||||
|
||||
@objc func faviconDidBecomeAvailable(_ note: Notification) {
|
||||
if let titleView = navigationItem.titleView as? MainTimelineTitleView {
|
||||
titleView.iconView?.iconImage = timelineIconImage
|
||||
}
|
||||
if showIcons {
|
||||
queueReloadAvailableCells()
|
||||
}
|
||||
@@ -611,9 +603,7 @@ class MainTimelineViewController: UITableViewController, UndoableCommandRunner {
|
||||
}
|
||||
|
||||
@objc func displayNameDidChange(_ note: Notification) {
|
||||
if let titleView = navigationItem.titleView as? MainTimelineTitleView {
|
||||
titleView.label?.text = timelineFeed?.nameForDisplay
|
||||
}
|
||||
navigationItem.title = timelineFeed?.nameForDisplay
|
||||
}
|
||||
|
||||
@objc func willEnterForeground(_ note: Notification) {
|
||||
@@ -764,12 +754,6 @@ private extension MainTimelineViewController {
|
||||
}
|
||||
}
|
||||
|
||||
func updateTitleUnreadCount() {
|
||||
if let titleView = navigationItem.titleView as? MainTimelineTitleView {
|
||||
titleView.unreadCountView?.unreadCount = coordinator?.timelineUnreadCount ?? 0
|
||||
}
|
||||
}
|
||||
|
||||
func applyChanges(animated: Bool, completion: (() -> Void)? = nil) {
|
||||
if (articles?.count ?? 0) == 0 {
|
||||
tableView.rowHeight = tableView.estimatedRowHeight
|
||||
|
||||
Reference in new issue
Block a user