Mark classes as final that can be marked as final.

This commit is contained in:
Brent Simmons
2025-01-25 11:01:12 -08:00
parent 48fc807f94
commit 5651764907
155 changed files with 172 additions and 172 deletions

View File

@@ -8,7 +8,7 @@
import Foundation
class MainFeedRowIdentifier: NSObject, NSCopying {
final class MainFeedRowIdentifier: NSObject, NSCopying {
var indexPath: IndexPath

View File

@@ -15,7 +15,7 @@ protocol MainFeedTableViewCellDelegate: AnyObject {
func mainFeedTableViewCellDisclosureDidToggle(_ sender: MainFeedTableViewCell, expanding: Bool)
}
class MainFeedTableViewCell: VibrantTableViewCell {
final class MainFeedTableViewCell: VibrantTableViewCell {
weak var delegate: MainFeedTableViewCellDelegate?

View File

@@ -12,7 +12,7 @@ protocol MainFeedTableViewSectionHeaderDelegate: AnyObject {
func mainFeedTableViewSectionHeaderDisclosureDidToggle(_ sender: MainFeedTableViewSectionHeader)
}
class MainFeedTableViewSectionHeader: UITableViewHeaderFooterView {
final class MainFeedTableViewSectionHeader: UITableViewHeaderFooterView {
weak var delegate: MainFeedTableViewSectionHeaderDelegate?

View File

@@ -15,7 +15,7 @@ import RSWeb
import SafariServices
import WebKit
class MainFeedViewController: UITableViewController, UndoableCommandRunner {
final class MainFeedViewController: UITableViewController, UndoableCommandRunner {
@IBOutlet weak var filterButton: UIBarButtonItem!
private var refreshProgressView: RefreshProgressView?
@@ -126,11 +126,11 @@ class MainFeedViewController: UITableViewController, UndoableCommandRunner {
}
var node: Node?
if let coordinator = unreadCountProvider as? SceneCoordinator, let feed = coordinator.timelineFeed {
node = coordinator.rootNode.descendantNodeRepresentingObject(feed as AnyObject)
} else {
// if let coordinator = unreadCountProvider as? SceneCoordinator, let feed = coordinator.timelineFeed {
// node = coordinator.rootNode.descendantNodeRepresentingObject(feed as AnyObject)
// } else {
node = coordinator.rootNode.descendantNodeRepresentingObject(unreadCountProvider as AnyObject)
}
// }
guard let unreadCountNode = node, let indexPath = coordinator.indexPathFor(unreadCountNode) else { return }
if let cell = tableView.cellForRow(at: indexPath) as? MainFeedTableViewCell {

View File

@@ -9,7 +9,7 @@
import UIKit
import Account
class RefreshProgressView: UIView {
final class RefreshProgressView: UIView {
@IBOutlet weak var progressView: UIProgressView!
@IBOutlet weak var label: UILabel!