From: Alan Third Date: Sat, 26 Jun 2021 14:39:19 +0000 (+0100) Subject: Remove unused variables X-Git-Tag: emacs-28.0.90~1965 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=0382aa114844c275467f62474497dd294688c52c;p=emacs.git Remove unused variables * src/nsterm.m ([EmacsView keyDown:]): Remove ns_fake_keydown as there's no code that ever sets it to YES. --- 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)