From 0382aa114844c275467f62474497dd294688c52c Mon Sep 17 00:00:00 2001 From: Alan Third Date: Sat, 26 Jun 2021 15:39:19 +0100 Subject: [PATCH] Remove unused variables * src/nsterm.m ([EmacsView keyDown:]): Remove ns_fake_keydown as there's no code that ever sets it to YES. --- src/nsterm.m | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/nsterm.m b/src/nsterm.m index dc5ecc45640..b9e2c9b6916 100644 --- a/src/nsterm.m +++ b/src/nsterm.m @@ -277,11 +277,9 @@ static NSView *focus_view = NULL; #endif static int ns_window_num = 0; static BOOL gsaved = NO; -static BOOL ns_fake_keydown = NO; #ifdef NS_IMPL_COCOA static BOOL ns_menu_bar_is_hidden = NO; #endif -/* static int debug_lock = 0; */ /* event loop */ static BOOL send_appdefined = YES; @@ -6293,9 +6291,7 @@ not_in_argv (NSString *arg) NSTRACE ("[EmacsView keyDown:]"); /* Rhapsody and macOS give up and down events for the arrow keys. */ - if (ns_fake_keydown == YES) - ns_fake_keydown = NO; - else if ([theEvent type] != NSEventTypeKeyDown) + if ([theEvent type] != NSEventTypeKeyDown) return; if (!emacs_event) -- 2.39.2