mirror of
https://github.com/yattee/yattee.git
synced 2026-10-30 16:37:17 +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:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user