From b6c66a7f2c31116195f58c27cf577b0e2ace672c Mon Sep 17 00:00:00 2001 From: Maurice Parker Date: Fri, 30 Oct 2020 09:47:30 -0500 Subject: [PATCH] Remove unnecessary system notification checks --- .../macOS/Article/WebViewController.swift | 15 --------------- NetNewsWire.xcodeproj/project.pbxproj | 2 ++ 2 files changed, 2 insertions(+), 15 deletions(-) diff --git a/Multiplatform/macOS/Article/WebViewController.swift b/Multiplatform/macOS/Article/WebViewController.swift index c0ebfc927..b415f71d2 100644 --- a/Multiplatform/macOS/Article/WebViewController.swift +++ b/Multiplatform/macOS/Article/WebViewController.swift @@ -11,11 +11,6 @@ import Combine import RSCore import Articles -extension Notification.Name { - static let appleColorPreferencesChangedNotification = Notification.Name("AppleColorPreferencesChangedNotification") - static let appleInterfaceThemeChangedNotification = Notification.Name("AppleInterfaceThemeChangedNotification") -} - protocol WebViewControllerDelegate: class { func webViewController(_: WebViewController, articleExtractorButtonStateDidUpdate: ArticleExtractorButtonState) } @@ -67,8 +62,6 @@ class WebViewController: NSViewController { NotificationCenter.default.addObserver(self, selector: #selector(webFeedIconDidBecomeAvailable(_:)), name: .WebFeedIconDidBecomeAvailable, object: nil) NotificationCenter.default.addObserver(self, selector: #selector(avatarDidBecomeAvailable(_:)), name: .AvatarDidBecomeAvailable, object: nil) NotificationCenter.default.addObserver(self, selector: #selector(faviconDidBecomeAvailable(_:)), name: .FaviconDidBecomeAvailable, object: nil) - DistributedNotificationCenter.default().addObserver(self, selector: #selector(appleColorPreferencesChanged(_:)), name: .appleColorPreferencesChangedNotification, object: nil) - DistributedNotificationCenter.default().addObserver(self, selector: #selector(appleInterfaceThemeChanged(_:)), name: .appleInterfaceThemeChangedNotification, object: nil) statusBarView = WebStatusBarView() statusBarView.translatesAutoresizingMaskIntoConstraints = false @@ -100,14 +93,6 @@ class WebViewController: NSViewController { reloadArticleImage() } - @objc func appleColorPreferencesChanged(_ note: Notification) { - loadWebView() - } - - @objc func appleInterfaceThemeChanged(_ note: Notification) { - loadWebView() - } - // MARK: API func focus() { diff --git a/NetNewsWire.xcodeproj/project.pbxproj b/NetNewsWire.xcodeproj/project.pbxproj index 6dfaabae5..eda6c2337 100644 --- a/NetNewsWire.xcodeproj/project.pbxproj +++ b/NetNewsWire.xcodeproj/project.pbxproj @@ -5618,6 +5618,7 @@ isa = XCBuildConfiguration; baseConfigurationReference = 51C0519824A7808F00194D5E /* NetNewsWire_multiplatform_macOSapp_target.xcconfig */; buildSettings = { + MACOSX_DEPLOYMENT_TARGET = 11.0; }; name = Debug; }; @@ -5625,6 +5626,7 @@ isa = XCBuildConfiguration; baseConfigurationReference = 51C0519824A7808F00194D5E /* NetNewsWire_multiplatform_macOSapp_target.xcconfig */; buildSettings = { + MACOSX_DEPLOYMENT_TARGET = 11.0; }; name = Release; };