From 5b4cf235d7e5465893f2e21dc730d629111fe12a Mon Sep 17 00:00:00 2001 From: Brent Simmons Date: Sat, 6 Jul 2024 21:18:32 -0700 Subject: [PATCH] Delete unused Multiplatform folder. --- .../Add Account Sheets/Authentication.swift | 13 ---- Multiplatform/Shared/AppModel.swift | 15 ---- Multiplatform/Shared/NavigationView.swift | 40 ----------- .../Shared/Sidebar/SidebarStyleModifier.swift | 34 --------- Multiplatform/iOS/AppSettings.swift | 72 ------------------- .../Accounts/AccountManagement.swift | 18 ----- 6 files changed, 192 deletions(-) delete mode 100644 Multiplatform/Shared/Add/Add Account Sheets/Authentication.swift delete mode 100644 Multiplatform/Shared/AppModel.swift delete mode 100644 Multiplatform/Shared/NavigationView.swift delete mode 100644 Multiplatform/Shared/Sidebar/SidebarStyleModifier.swift delete mode 100644 Multiplatform/iOS/AppSettings.swift delete mode 100644 Multiplatform/macOS/Preferences/Preference Panes/Accounts/AccountManagement.swift diff --git a/Multiplatform/Shared/Add/Add Account Sheets/Authentication.swift b/Multiplatform/Shared/Add/Add Account Sheets/Authentication.swift deleted file mode 100644 index 026f7ab4f..000000000 --- a/Multiplatform/Shared/Add/Add Account Sheets/Authentication.swift +++ /dev/null @@ -1,13 +0,0 @@ -// -// Authentication.swift -// Multiplatform macOS -// -// Created by Stuart Breckenridge on 05/12/2020. -// Copyright © 2020 Ranchero Software. All rights reserved. -// - -import Foundation - -protocol AccountUpdater { - var authenticationError: AccountUpdateErrors { get set } -} diff --git a/Multiplatform/Shared/AppModel.swift b/Multiplatform/Shared/AppModel.swift deleted file mode 100644 index 754efcd28..000000000 --- a/Multiplatform/Shared/AppModel.swift +++ /dev/null @@ -1,15 +0,0 @@ -// -// AppModel.swift -// NetNewsWire -// -// Created by Maurice Parker on 6/28/20. -// Copyright © 2020 Ranchero Software. All rights reserved. -// - -import Foundation - -final class SceneModel { - - var sidebarModel = SidebarModel() - -} diff --git a/Multiplatform/Shared/NavigationView.swift b/Multiplatform/Shared/NavigationView.swift deleted file mode 100644 index 27e663ff3..000000000 --- a/Multiplatform/Shared/NavigationView.swift +++ /dev/null @@ -1,40 +0,0 @@ -// -// NavigationView.swift -// NetNewsWire -// -// Created by Maurice Parker on 6/28/20. -// Copyright © 2020 Ranchero Software. All rights reserved. -// - -import SwiftUI - -struct SceneNavigationView: View { - var body: some View { - SceneNavigationView { - Text("Hello") -// #if os(macOS) -// SidebarView().frame(minWidth: 100, idealWidth: 150, maxWidth: 200, maxHeight: .infinity) -// #else -// SidebarView() -// #endif -// -// Text("Timeline") -// .frame(maxWidth: .infinity, maxHeight: .infinity) -// -// #if os(macOS) -// Text("None Selected") -// .frame(maxWidth: .infinity, maxHeight: .infinity) -// .toolbar { Spacer() } -// #else -// Text("None Selected") -// .frame(maxWidth: .infinity, maxHeight: .infinity) -// #endif - } - } -} - -struct NavigationView_Previews: PreviewProvider { - static var previews: some View { - SceneNavigationView() - } -} diff --git a/Multiplatform/Shared/Sidebar/SidebarStyleModifier.swift b/Multiplatform/Shared/Sidebar/SidebarStyleModifier.swift deleted file mode 100644 index 43cd89b9e..000000000 --- a/Multiplatform/Shared/Sidebar/SidebarStyleModifier.swift +++ /dev/null @@ -1,34 +0,0 @@ -// -// SidebarStyleModifier.swift -// NetNewsWire -// -// Created by Maurice Parker on 7/6/20. -// Copyright © 2020 Ranchero Software. All rights reserved. -// - -import SwiftUI - -struct SidebarListStyleModifier: ViewModifier { - - #if os(iOS) - @Environment(\.horizontalSizeClass) private var horizontalSizeClass - #endif - - @ViewBuilder func body(content: Content) -> some View { - content - #if os(macOS) - content - .listStyle(SidebarListStyle()) - #else - if horizontalSizeClass == .compact { - content - .listStyle(PlainListStyle()) - } else { - content - .listStyle(SidebarListStyle()) - } - #endif - - } - -} diff --git a/Multiplatform/iOS/AppSettings.swift b/Multiplatform/iOS/AppSettings.swift deleted file mode 100644 index 80caba537..000000000 --- a/Multiplatform/iOS/AppSettings.swift +++ /dev/null @@ -1,72 +0,0 @@ -// -// AppSettings.swift -// Multiplatform iOS -// -// Created by Stuart Breckenridge on 1/7/20. -// Copyright © 2020 Ranchero Software. All rights reserved. -// - -import Foundation - -enum ColorPalette: Int, CustomStringConvertible, CaseIterable { - case automatic = 0 - case light = 1 - case dark = 2 - - var description: String { - switch self { - case .automatic: - return NSLocalizedString("Automatic", comment: "Automatic") - case .light: - return NSLocalizedString("Light", comment: "Light") - case .dark: - return NSLocalizedString("Dark", comment: "Dark") - } - } -} - - -class AppSettings: ObservableObject { - - struct Key { - static let userInterfaceColorPalette = "userInterfaceColorPalette" - static let activeExtensionPointIDs = "activeExtensionPointIDs" - static let lastImageCacheFlushDate = "lastImageCacheFlushDate" - static let firstRunDate = "firstRunDate" - static let timelineGroupByFeed = "timelineGroupByFeed" - static let refreshClearsReadArticles = "refreshClearsReadArticles" - static let timelineNumberOfLines = "timelineNumberOfLines" - static let timelineIconSize = "timelineIconSize" - static let timelineSortDirection = "timelineSortDirection" - static let articleFullscreenAvailable = "articleFullscreenAvailable" - static let articleFullscreenEnabled = "articleFullscreenEnabled" - static let confirmMarkAllAsRead = "confirmMarkAllAsRead" - static let lastRefresh = "lastRefresh" - static let addWebFeedAccountID = "addWebFeedAccountID" - static let addWebFeedFolderName = "addWebFeedFolderName" - static let addFolderAccountID = "addFolderAccountID" - } - - static let isDeveloperBuild: Bool = { - if let dev = Bundle.main.object(forInfoDictionaryKey: "DeveloperEntitlements") as? String, dev == "-dev" { - return true - } - return false - }() - - static let isFirstRun: Bool = { - if let _ = AppDefaults.shared.object(forKey: Key.firstRunDate) as? Date { - return false - } - firstRunDate = Date() - return true - }() - - - - - - - - -} diff --git a/Multiplatform/macOS/Preferences/Preference Panes/Accounts/AccountManagement.swift b/Multiplatform/macOS/Preferences/Preference Panes/Accounts/AccountManagement.swift deleted file mode 100644 index d734c676c..000000000 --- a/Multiplatform/macOS/Preferences/Preference Panes/Accounts/AccountManagement.swift +++ /dev/null @@ -1,18 +0,0 @@ -// -// AccountManagement.swift -// Multiplatform macOS -// -// Created by Stuart Breckenridge on 14/7/20. -// Copyright © 2020 Ranchero Software. All rights reserved. -// - -import Foundation - -protocol AccountManagement { - - - - - - -}