mirror of
https://github.com/ghostty-org/ghostty.git
synced 2026-08-25 16:41:44 +00:00
macos: remove unused hosting window helper (#13873)
Remove the unused SwiftUI environment key intended to expose a hosting window. Nothing sets or reads the value.
This commit is contained in:
@@ -1,14 +0,0 @@
|
||||
import SwiftUI
|
||||
|
||||
struct HostingWindowKey: EnvironmentKey {
|
||||
typealias Value = () -> NSWindow? // needed for weak link
|
||||
static let defaultValue: Self.Value = { nil }
|
||||
}
|
||||
|
||||
extension EnvironmentValues {
|
||||
/// This can be used to set the hosting NSWindow to a NSHostingView
|
||||
var hostingWindow: HostingWindowKey.Value {
|
||||
get { return self[HostingWindowKey.self] }
|
||||
set { self[HostingWindowKey.self] = newValue }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user