🔥 Removes unused code (fixes #4720)

This commit is contained in:
Stuart Breckenridge committed 2025-08-15 20:22:44 +08:00
1 parent 64a6e729e7
commit 59a4d37925
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