mirror of
https://github.com/yattee/yattee.git
synced 2026-11-25 23:41:41 +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:
@@ -283,22 +283,12 @@ final class QueueManager {
|
||||
playerService?.openVideo(videoToPlay)
|
||||
}
|
||||
|
||||
/// Clears the media browser context when switching to a different queue source.
|
||||
func clearMediaBrowserContext() {
|
||||
mediaBrowserContext = nil
|
||||
}
|
||||
|
||||
/// Whether there are more items that can be loaded from the queue source.
|
||||
func hasMoreItems() -> Bool {
|
||||
guard let source = currentQueueSource else { return false }
|
||||
return source.supportsContinuation
|
||||
}
|
||||
|
||||
/// Sets the queue source for continuation loading.
|
||||
func setQueueSource(_ source: QueueSource?) {
|
||||
currentQueueSource = source
|
||||
}
|
||||
|
||||
// MARK: - Proactive Continuation Loading
|
||||
|
||||
/// Called when a video starts playing to trigger proactive loading.
|
||||
|
||||
Reference in New Issue
Block a user