mirror of
https://github.com/yattee/yattee.git
synced 2026-10-28 23:47: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:
@@ -660,30 +660,6 @@ final class ExpandedPlayerWindowManager: NSObject {
|
||||
LoggingService.shared.debug("ExpandedPlayerWindowManager: restored corner panels after fullscreen", category: .player)
|
||||
}
|
||||
|
||||
/// Restores a window that was hidden for PiP mode.
|
||||
/// Call this when returning from PiP to show the player window again.
|
||||
func restoreFromPiP(animated: Bool = true) {
|
||||
guard let window = playerWindow else {
|
||||
LoggingService.shared.debug("ExpandedPlayerWindowManager: restoreFromPiP - no window to restore", category: .player)
|
||||
return
|
||||
}
|
||||
|
||||
LoggingService.shared.debug("ExpandedPlayerWindowManager: restoreFromPiP called", category: .player)
|
||||
|
||||
if animated {
|
||||
window.alphaValue = 0
|
||||
window.makeKeyAndOrderFront(nil)
|
||||
NSAnimationContext.runAnimationGroup { context in
|
||||
context.duration = 0.25
|
||||
context.timingFunction = CAMediaTimingFunction(name: .easeOut)
|
||||
window.animator().alphaValue = 1
|
||||
}
|
||||
} else {
|
||||
window.alphaValue = 1
|
||||
window.makeKeyAndOrderFront(nil)
|
||||
}
|
||||
}
|
||||
|
||||
/// Cleans up a window that was hidden for PiP when PiP ends without restoring.
|
||||
/// Call this when PiP is closed via the X button (not restore).
|
||||
func cleanupAfterPiP() {
|
||||
|
||||
Reference in New Issue
Block a user