mirror of
https://github.com/ghostty-org/ghostty.git
synced 2026-06-02 01:48:08 +00:00
macos: remove unneeded initializers (#12875)
These will be automatically synthesized (they only do memberwise initialization) and do not need to be manually defined.
This commit is contained in:
@@ -44,16 +44,6 @@ extension QuickTerminalRestorableState {
|
||||
let focusedSurface: String?
|
||||
let surfaceTree: SplitTree<ViewType>
|
||||
let screenStateEntries: QuickTerminalScreenStateCache.Entries
|
||||
|
||||
init(
|
||||
focusedSurface: String?,
|
||||
surfaceTree: SplitTree<ViewType>,
|
||||
screenStateEntries: QuickTerminalScreenStateCache.Entries,
|
||||
) {
|
||||
self.focusedSurface = focusedSurface
|
||||
self.surfaceTree = surfaceTree
|
||||
self.screenStateEntries = screenStateEntries
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -15,20 +15,6 @@ extension TerminalRestorableState {
|
||||
let effectiveFullscreenMode: FullscreenMode?
|
||||
let tabColor: TerminalTabColor?
|
||||
let titleOverride: String?
|
||||
|
||||
init(
|
||||
focusedSurface: String?,
|
||||
surfaceTree: SplitTree<ViewType>,
|
||||
effectiveFullscreenMode: FullscreenMode?,
|
||||
tabColor: TerminalTabColor?,
|
||||
titleOverride: String?,
|
||||
) {
|
||||
self.focusedSurface = focusedSurface
|
||||
self.surfaceTree = surfaceTree
|
||||
self.effectiveFullscreenMode = effectiveFullscreenMode
|
||||
self.tabColor = tabColor
|
||||
self.titleOverride = titleOverride
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -734,8 +734,7 @@ extension Ghostty {
|
||||
// cached value is restored next time the terminal emits a
|
||||
// color_change.
|
||||
if let cached = self.backgroundColor,
|
||||
cached != self.derivedConfig.backgroundColor
|
||||
{
|
||||
cached != self.derivedConfig.backgroundColor {
|
||||
self.backgroundColor = nil
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user