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:
Arkadiusz Fal
2026-10-08 23:57:56 +02:00
parent 45e19e6536
commit 4770bbe3b9
141 changed files with 14 additions and 4191 deletions

View File

@@ -47,14 +47,6 @@ enum LocalFolderURLResolver {
lock.lock(); defer { lock.unlock() }
return cache[sourceID]
}
static func clear(_ sourceID: UUID) {
lock.lock(); defer { lock.unlock() }
cache.removeValue(forKey: sourceID)
if let previous = persistentAccess.removeValue(forKey: sourceID) {
previous.stopAccessingSecurityScopedResource()
}
}
}
/// Actor-based client for local file system operations.
@@ -279,15 +271,6 @@ actor LocalFileClient {
return url
}
/// Resolves bookmark and starts accessing the security-scoped resource.
/// - Parameter bookmarkData: The stored bookmark data.
/// - Returns: Tuple of (URL, didStartAccessing) - caller must call stopAccessingSecurityScopedResource when done.
func resolveAndAccessBookmark(_ bookmarkData: Data) throws -> (URL, Bool) {
let url = try resolveBookmark(bookmarkData)
let didStart = url.startAccessingSecurityScopedResource()
return (url, didStart)
}
// MARK: - Private Methods
private func createMediaFile(