diff --git a/Mac/CrashReporter/CrashReportWindowController.swift b/Mac/CrashReporter/CrashReportWindowController.swift index b0d155d43..0e73c106f 100644 --- a/Mac/CrashReporter/CrashReportWindowController.swift +++ b/Mac/CrashReporter/CrashReportWindowController.swift @@ -59,4 +59,3 @@ final class CrashReportWindowController: NSWindowController { close() } } - diff --git a/Mac/MainWindow/Detail/DetailWebView.swift b/Mac/MainWindow/Detail/DetailWebView.swift index 58922083f..95709089c 100644 --- a/Mac/MainWindow/Detail/DetailWebView.swift +++ b/Mac/MainWindow/Detail/DetailWebView.swift @@ -89,4 +89,3 @@ private extension DetailWebView { return false } } - diff --git a/Mac/MainWindow/Keyboard/MainWindowKeyboardHandler.swift b/Mac/MainWindow/Keyboard/MainWindowKeyboardHandler.swift index 0b781a7d9..d7fa85c56 100644 --- a/Mac/MainWindow/Keyboard/MainWindowKeyboardHandler.swift +++ b/Mac/MainWindow/Keyboard/MainWindowKeyboardHandler.swift @@ -30,4 +30,3 @@ import RSCore return true } } - diff --git a/Mac/MainWindow/MainWindowController.swift b/Mac/MainWindow/MainWindowController.swift index 4a9b0fa68..0fa9b8310 100644 --- a/Mac/MainWindow/MainWindowController.swift +++ b/Mac/MainWindow/MainWindowController.swift @@ -1421,6 +1421,4 @@ private extension MainWindowController { articleThemeMenuToolbarItem.menu = articleThemeMenu articleThemePopUpButton?.menu = articleThemeMenu } - } - diff --git a/Mac/MainWindow/NNW3/NNW3Document.swift b/Mac/MainWindow/NNW3/NNW3Document.swift index 9d7fbed7f..2fb3b4e32 100644 --- a/Mac/MainWindow/NNW3/NNW3Document.swift +++ b/Mac/MainWindow/NNW3/NNW3Document.swift @@ -141,4 +141,3 @@ extension NNW3Feed: OPMLRepresentable { return s } } - diff --git a/Mac/MainWindow/Sidebar/Cell/SidebarCellAppearance.swift b/Mac/MainWindow/Sidebar/Cell/SidebarCellAppearance.swift index 9dce61a40..fdf0dd96e 100644 --- a/Mac/MainWindow/Sidebar/Cell/SidebarCellAppearance.swift +++ b/Mac/MainWindow/Sidebar/Cell/SidebarCellAppearance.swift @@ -32,4 +32,3 @@ struct SidebarCellAppearance: Equatable { self.textFieldFont = NSFont.systemFont(ofSize: textFieldFontSize) } } - diff --git a/Mac/MainWindow/Sidebar/Keyboard/SidebarKeyboardDelegate.swift b/Mac/MainWindow/Sidebar/Keyboard/SidebarKeyboardDelegate.swift index 5bec6043d..ad2dbb73b 100644 --- a/Mac/MainWindow/Sidebar/Keyboard/SidebarKeyboardDelegate.swift +++ b/Mac/MainWindow/Sidebar/Keyboard/SidebarKeyboardDelegate.swift @@ -39,4 +39,3 @@ import RSCore return true } } - diff --git a/Mac/MainWindow/Sidebar/SidebarViewController+ContextualMenus.swift b/Mac/MainWindow/Sidebar/SidebarViewController+ContextualMenus.swift index a06728dc4..71bdf0dcb 100644 --- a/Mac/MainWindow/Sidebar/SidebarViewController+ContextualMenus.swift +++ b/Mac/MainWindow/Sidebar/SidebarViewController+ContextualMenus.swift @@ -365,4 +365,3 @@ private extension SidebarViewController { return articles } } - diff --git a/Mac/MainWindow/Sidebar/UnreadCountView.swift b/Mac/MainWindow/Sidebar/UnreadCountView.swift index 54a9d2957..25c63cd5a 100644 --- a/Mac/MainWindow/Sidebar/UnreadCountView.swift +++ b/Mac/MainWindow/Sidebar/UnreadCountView.swift @@ -108,4 +108,3 @@ final class UnreadCountView: NSView { } } } - diff --git a/Mac/MainWindow/Timeline/ArticlePasteboardWriter.swift b/Mac/MainWindow/Timeline/ArticlePasteboardWriter.swift index 3308f8148..4de29692e 100644 --- a/Mac/MainWindow/Timeline/ArticlePasteboardWriter.swift +++ b/Mac/MainWindow/Timeline/ArticlePasteboardWriter.swift @@ -185,4 +185,3 @@ private extension ArticlePasteboardWriter { return authors.map{ authorDictionary($0) } } } - diff --git a/Mac/MainWindow/Timeline/Cell/TimelineCellLayout.swift b/Mac/MainWindow/Timeline/Cell/TimelineCellLayout.swift index 555916e5d..fd28bfaa9 100644 --- a/Mac/MainWindow/Timeline/Cell/TimelineCellLayout.swift +++ b/Mac/MainWindow/Timeline/Cell/TimelineCellLayout.swift @@ -233,4 +233,3 @@ private extension Array where Element == NSRect { return y } } - diff --git a/Mac/MainWindow/Timeline/TimelineContainerView.swift b/Mac/MainWindow/Timeline/TimelineContainerView.swift index e75475405..5b79c1a8b 100644 --- a/Mac/MainWindow/Timeline/TimelineContainerView.swift +++ b/Mac/MainWindow/Timeline/TimelineContainerView.swift @@ -9,7 +9,6 @@ import AppKit final class TimelineContainerView: NSView { - private var contentViewConstraints: [NSLayoutConstraint]? var contentView: NSView? { @@ -34,4 +33,3 @@ final class TimelineContainerView: NSView { } } } - diff --git a/Mac/Scripting/AppDelegate+Scriptability.swift b/Mac/Scripting/AppDelegate+Scriptability.swift index 3bb136e14..9b17bd08d 100644 --- a/Mac/Scripting/AppDelegate+Scriptability.swift +++ b/Mac/Scripting/AppDelegate+Scriptability.swift @@ -202,4 +202,3 @@ final class NetNewsWireExistsCommand: NSExistsCommand { return result } } - diff --git a/Mac/Scripting/ScriptingObjectContainer.swift b/Mac/Scripting/ScriptingObjectContainer.swift index a73973924..2e37ca70b 100644 --- a/Mac/Scripting/ScriptingObjectContainer.swift +++ b/Mac/Scripting/ScriptingObjectContainer.swift @@ -36,4 +36,3 @@ extension ScriptingObjectContainer { return specifier } } - diff --git a/ModernTimelineCustomizerTableViewController.swift b/ModernTimelineCustomizerTableViewController.swift deleted file mode 100644 index 99bfc8448..000000000 --- a/ModernTimelineCustomizerTableViewController.swift +++ /dev/null @@ -1,123 +0,0 @@ -import UIKit -import Articles - -final class ModernTimelineCustomizerTableViewController: UITableViewController { - private var previewArticle: Article { - var components = DateComponents() - components.year = 1925 - components.month = 4 - components.day = 10 - - let calendar = Calendar.current - let date = calendar.date(from: components)! - - return Article(accountID: "_testID", - articleID: "_testArticleID", - feedID: "_testFeedID", - uniqueID: UUID().uuidString, - title: "Chapter 1", - contentHTML: nil, - contentText: "In my younger and more vulnerable years my father gave me some advice that I’ve been turning over in my mind ever since. “Whenever you feel like criticizing any one,” he told me, “just remember that all the people in this world haven’t had the advantages that you’ve had.”", - markdown: nil, - url: nil, - externalURL: nil, - summary: nil, - imageURL: nil, - datePublished: date, - dateModified: nil, - authors: Set([Author(authorID: "_testAuthorID", name: "F. Scott Fitzgerald", url: nil, avatarURL: nil, emailAddress: nil)!]), - status: ArticleStatus(articleID: "_testArticleID", read: false, starred: false, dateArrived: .now)) - } - - override func viewDidLoad() { - super.viewDidLoad() - title = NSLocalizedString("Timeline Customizer", comment: "Timeline Customizer") - - NotificationCenter.default.addObserver(forName: UserDefaults.didChangeNotification, object: nil, queue: .main) { [weak self] _ in - Task { @MainActor in - self?.userDefaultsDidChange() - } - } - } - - override func traitCollectionDidChange(_ previousTraitCollection: UITraitCollection?) { - tableView.reloadSections(IndexSet(integer: 2), with: .fade) - } - - // MARK: - Table view data source - - override func numberOfSections(in tableView: UITableView) -> Int { - return 4 - } - - override func tableView(_ tableView: UITableView, numberOfRowsInSection section: Int) -> Int { - return 1 - } - - override func tableView(_ tableView: UITableView, titleForHeaderInSection section: Int) -> String? { - if section == 0 { return NSLocalizedString("Icon Size", comment: "Icon Size")} - if section == 1 { return NSLocalizedString("Number of Lines", comment: "Number of Lines")} - if section == 2 { return NSLocalizedString("Preview with Icon", comment: "Previews") } - if section == 3 { return NSLocalizedString("Preview without Icon", comment: "Previews") } - return nil - } - - override func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell { - if indexPath.section == 0 { - let cell = tableView.dequeueReusableCell(withIdentifier: "IconSizeCell") as! ModernTimelineSliderCell - cell.sliderConfiguration = .iconSize - return cell - } - - if indexPath.section == 1 { - let cell = tableView.dequeueReusableCell(withIdentifier: "NumberOfLinesCell") as! ModernTimelineSliderCell - cell.sliderConfiguration = .numberOfLines - return cell - } - - if indexPath.section == 2 { - let cell = tableView.dequeueReusableCell(withIdentifier: "MainTimelineIconFeedCell") as? MainTimelineIconFeedCell ?? MainTimelineIconFeedCell() - cell.cellData = MainTimelineCellData(article: previewArticle, - showFeedName: .byline, - feedName: "The Great Gatsby", - byline: "F. Scott Fitzgerald", - iconImage: IconImage(Assets.Images.nnwFeedIcon), - showIcon: true, - numberOfLines: AppDefaults.shared.timelineNumberOfLines, - iconSize: AppDefaults.shared.timelineIconSize) - cell.isPreview = true - return cell - } - - if indexPath.section == 3 { - let cell = tableView.dequeueReusableCell(withIdentifier: "MainTimelineFeedCell") as? MainTimelineFeedCell ?? MainTimelineFeedCell() - cell.cellData = MainTimelineCellData(article: previewArticle, - showFeedName: .byline, - feedName: "The Great Gatsby", - byline: "F. Scott Fitzgerald", - iconImage: nil, - showIcon: false, - numberOfLines: AppDefaults.shared.timelineNumberOfLines, - iconSize: AppDefaults.shared.timelineIconSize) - cell.isPreview = true - return cell - } - - return UITableViewCell() - - } - - override func tableView(_ tableView: UITableView, willSelectRowAt indexPath: IndexPath) -> IndexPath? { - return nil - } - - override func tableView(_ tableView: UITableView, shouldHighlightRowAt indexPath: IndexPath) -> Bool { - return false - } - - // MARK: - Notifications - - func userDefaultsDidChange() { - tableView.reloadSections(IndexSet(integersIn: 2...3), with: .none) - } -} \ No newline at end of file diff --git a/Modules/Account/Sources/Account/LocalAccount/LocalAccountRefresher.swift b/Modules/Account/Sources/Account/LocalAccount/LocalAccountRefresher.swift index c75b526dd..06287c008 100644 --- a/Modules/Account/Sources/Account/LocalAccount/LocalAccountRefresher.swift +++ b/Modules/Account/Sources/Account/LocalAccount/LocalAccountRefresher.swift @@ -19,7 +19,6 @@ import os } @MainActor final class LocalAccountRefresher { - var delegate: LocalAccountRefresherDelegate? var downloadProgress: DownloadProgress { downloadSession.downloadProgress @@ -292,4 +291,3 @@ private extension Data { return self.isImage } } - diff --git a/Modules/ArticlesDatabase/Sources/ArticlesDatabase/Extensions/ArticleStatus+Database.swift b/Modules/ArticlesDatabase/Sources/ArticlesDatabase/Extensions/ArticleStatus+Database.swift index 60a500c73..84d3476de 100644 --- a/Modules/ArticlesDatabase/Sources/ArticlesDatabase/Extensions/ArticleStatus+Database.swift +++ b/Modules/ArticlesDatabase/Sources/ArticlesDatabase/Extensions/ArticleStatus+Database.swift @@ -19,11 +19,9 @@ extension ArticleStatus { self.init(articleID: articleID, read: read, starred: starred, dateArrived: dateArrived) } - } extension ArticleStatus: @retroactive DatabaseObject { - public var databaseID: String { return articleID } @@ -32,4 +30,3 @@ extension ArticleStatus: @retroactive DatabaseObject { return [DatabaseKey.articleID: articleID, DatabaseKey.read: read, DatabaseKey.starred: starred, DatabaseKey.dateArrived: dateArrived] } } - diff --git a/Modules/RSCore/Sources/RSCore/AppKit/NSOutlineView+RSCore.swift b/Modules/RSCore/Sources/RSCore/AppKit/NSOutlineView+RSCore.swift index e8348e1b1..f417c6def 100644 --- a/Modules/RSCore/Sources/RSCore/AppKit/NSOutlineView+RSCore.swift +++ b/Modules/RSCore/Sources/RSCore/AppKit/NSOutlineView+RSCore.swift @@ -179,4 +179,3 @@ public extension NSOutlineView { } } #endif - diff --git a/Modules/RSCore/Sources/RSCore/AppKit/UserApp.swift b/Modules/RSCore/Sources/RSCore/AppKit/UserApp.swift index 363fda885..26ee81101 100644 --- a/Modules/RSCore/Sources/RSCore/AppKit/UserApp.swift +++ b/Modules/RSCore/Sources/RSCore/AppKit/UserApp.swift @@ -137,4 +137,3 @@ public final class UserApp { } } #endif - diff --git a/Modules/RSCore/Sources/RSCore/SendToCommand.swift b/Modules/RSCore/Sources/RSCore/SendToCommand.swift index 15e8b2623..3977f5995 100644 --- a/Modules/RSCore/Sources/RSCore/SendToCommand.swift +++ b/Modules/RSCore/Sources/RSCore/SendToCommand.swift @@ -45,4 +45,3 @@ import UIKit /// - selectedText: The currently selected text. func sendObject(_ object: Any?, selectedText: String?) } - diff --git a/Modules/RSDatabase/Sources/RSDatabase/FMResultSet+Extras.swift b/Modules/RSDatabase/Sources/RSDatabase/FMResultSet+Extras.swift index 1dfb24d19..b87e905e5 100644 --- a/Modules/RSDatabase/Sources/RSDatabase/FMResultSet+Extras.swift +++ b/Modules/RSDatabase/Sources/RSDatabase/FMResultSet+Extras.swift @@ -36,4 +36,3 @@ public extension FMResultSet { return Set(compactMap(completion)) } } - diff --git a/Modules/RSDatabase/Sources/RSDatabase/Related Objects/DatabaseLookupTable.swift b/Modules/RSDatabase/Sources/RSDatabase/Related Objects/DatabaseLookupTable.swift index 4a189ca8a..0eed88910 100644 --- a/Modules/RSDatabase/Sources/RSDatabase/Related Objects/DatabaseLookupTable.swift +++ b/Modules/RSDatabase/Sources/RSDatabase/Related Objects/DatabaseLookupTable.swift @@ -244,4 +244,3 @@ private extension DatabaseLookupTable { objectIDsWithNoRelatedObjects.withLock { $0.subtract(objectIDs) } } } - diff --git a/Shared/Timeline/ArticleArray.swift b/Shared/Timeline/ArticleArray.swift index 0f5552a4d..c1c4b40d0 100644 --- a/Shared/Timeline/ArticleArray.swift +++ b/Shared/Timeline/ArticleArray.swift @@ -134,4 +134,3 @@ typealias ArticleArray = [Article] } } - diff --git a/iOS/Article/ArticleIconSchemeHandler.swift b/iOS/Article/ArticleIconSchemeHandler.swift index 092c6e689..4c909b9a9 100644 --- a/iOS/Article/ArticleIconSchemeHandler.swift +++ b/iOS/Article/ArticleIconSchemeHandler.swift @@ -11,7 +11,6 @@ import WebKit import Articles final class ArticleIconSchemeHandler: NSObject, WKURLSchemeHandler { - weak var coordinator: SceneCoordinator? init(coordinator: SceneCoordinator) { @@ -49,12 +48,9 @@ final class ArticleIconSchemeHandler: NSObject, WKURLSchemeHandler { urlSchemeTask.didReceive(data) urlSchemeTask.didFinish() } - } func webView(_ webView: WKWebView, stop urlSchemeTask: WKURLSchemeTask) { urlSchemeTask.didFailWithError(URLError(.unknown)) } - } - diff --git a/iOS/MainFeed/Collection View Cells/MainFeedCollectionViewCell.swift b/iOS/MainFeed/Collection View Cells/MainFeedCollectionViewCell.swift index 5c0e1c6dc..9793b7f76 100644 --- a/iOS/MainFeed/Collection View Cells/MainFeedCollectionViewCell.swift +++ b/iOS/MainFeed/Collection View Cells/MainFeedCollectionViewCell.swift @@ -115,4 +115,3 @@ final class MainFeedCollectionViewCell: UICollectionViewCell { self.backgroundConfiguration = backgroundConfig } } -