mirror of
https://github.com/kovidgoyal/kitty.git
synced 2026-11-20 07:02:28 +00:00
macOS: Remove unused application launch state
189d78283c introduced the application_has_finished_launching variable,
but it's never read. This causes a compile error on macOS 26.6.2 with
Clang 23.1.2.
Remove the unused variable and assignment so the source can be compiled.
Signed-off-by: Jiamu Sun <39@barroit.sh>
This commit is contained in:
parent
132d00dd09
commit
9ef5b44ca6
1 changed files with 2 additions and 4 deletions
|
|
@ -54,7 +54,6 @@ CFArrayRef CGSCopySpacesForWindows(CGSConnectionID Connection, CGSSpaceSelector
|
|||
|
||||
static NSMenuItem *title_menu = NULL;
|
||||
static NSMenuItem *secure_input_title_menu = NULL;
|
||||
static bool application_has_finished_launching = false;
|
||||
|
||||
|
||||
static NSString *
|
||||
|
|
@ -920,9 +919,8 @@ cocoa_create_global_menu(void) {
|
|||
|
||||
void
|
||||
cocoa_application_lifecycle_event(bool application_launch_finished) {
|
||||
if (application_launch_finished) { // applicationDidFinishLaunching
|
||||
application_has_finished_launching = true;
|
||||
} else cocoa_create_global_menu(); // applicationWillFinishLaunching
|
||||
if (!application_launch_finished)
|
||||
cocoa_create_global_menu(); // applicationWillFinishLaunching
|
||||
}
|
||||
|
||||
void
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue