Skip to content

Commit

Permalink
rn | Remove set but unused variable. (facebook#46891)
Browse files Browse the repository at this point in the history
Summary:
Pull Request resolved: facebook#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
  • Loading branch information
nlutsenko authored and facebook-github-bot committed Oct 8, 2024
1 parent 6b2bbcf commit d386dfc
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions packages/react-native/React/Base/RCTKeyCommands.m
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}
Expand Down

0 comments on commit d386dfc

Please sign in to comment.