emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

master 0382aa1 2/3: Remove unused variables


From: Alan Third
Subject: master 0382aa1 2/3: Remove unused variables
Date: Sun, 4 Jul 2021 06:39:59 -0400 (EDT)

branch: master
commit 0382aa114844c275467f62474497dd294688c52c
Author: Alan Third <alan@idiocy.org>
Commit: Alan Third <alan@idiocy.org>

    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 dc5ecc4..b9e2c9b 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)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]