mirror of
https://github.com/yattee/yattee.git
synced 2026-11-04 02:47:18 +00:00
Remove dead code found by Periphery on all platforms
Delete declarations that Periphery reports unused on every platform that compiles them (iOS, macOS, tvOS), including nine views used only by their own previews. Platform-gated code still used on another platform, device- only MPV render paths, migration models, CloudKit record names, App Intents metadata and unused parameters are kept.
This commit is contained in:
@@ -10,9 +10,6 @@ import SwiftUI
|
||||
struct EditSourceView: View {
|
||||
let source: UnifiedSource
|
||||
|
||||
@Environment(\.dismiss) private var dismiss
|
||||
@Environment(\.appEnvironment) private var appEnvironment
|
||||
|
||||
var body: some View {
|
||||
switch source {
|
||||
case .remoteServer(let instance):
|
||||
@@ -400,10 +397,6 @@ private struct EditRemoteServerContent: View {
|
||||
|
||||
// MARK: - Computed Properties
|
||||
|
||||
private var hasYatteeServer: Bool {
|
||||
appEnvironment?.instancesManager.hasYatteeServerInstances ?? false
|
||||
}
|
||||
|
||||
private func invidiousDisplayValue(_ info: InstanceDetectorModels.YatteeServerFullInfo) -> String {
|
||||
guard let invidiousInstance = info.config?.invidiousInstance else {
|
||||
return String(localized: "sources.serverInfo.notConfigured")
|
||||
|
||||
Reference in New Issue
Block a user