From d386dfc804842ed36565966da5aed15d9df7960e Mon Sep 17 00:00:00 2001 From: Nikita Lutsenko Date: Tue, 8 Oct 2024 12:48:45 -0700 Subject: [PATCH] rn | Remove set but unused variable. (#46891) Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/46891 This was set but never directly used - fix it. Changelog: [iOS][Fixed] Removed usage of set but unused variable. Reviewed By: mg-here Differential Revision: D64029449 fbshipit-source-id: 0d60428317de95aa235f249c512fa968aa04f879 --- packages/react-native/React/Base/RCTKeyCommands.m | 2 -- 1 file changed, 2 deletions(-) diff --git a/packages/react-native/React/Base/RCTKeyCommands.m b/packages/react-native/React/Base/RCTKeyCommands.m index 2fb0db601128fa..1961de7e2bb6dd 100644 --- a/packages/react-native/React/Base/RCTKeyCommands.m +++ b/packages/react-native/React/Base/RCTKeyCommands.m @@ -128,13 +128,11 @@ - (void)handleKeyUIEventSwizzle:(UIEvent *)event isKeyDown = [event _isKeyDown]; } - BOOL hasFirstResponder = NO; if (isKeyDown && modifiedInput.length > 0) { UIResponder *firstResponder = nil; for (UIWindow *window in [self allWindows]) { firstResponder = [window valueForKey:@"firstResponder"]; if (firstResponder) { - hasFirstResponder = YES; break; } }