mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Remove unused _focusSubscription
Summary: This variable is never set and only ever removed Changelog: [Internal] Reviewed By: yungsters Differential Revision: D18537317 fbshipit-source-id: bbb084e2ea5408fc59ef3853b2ec74bf22afbe21
This commit is contained in:
committed by
Facebook Github Bot
parent
e483bd4d49
commit
7813e24cdb
@@ -812,7 +812,6 @@ class InternalTextInput extends React.Component<Props> {
|
||||
};
|
||||
|
||||
_inputRef: null | React.ElementRef<HostComponent<mixed>> = null;
|
||||
_focusSubscription: ?Function = undefined;
|
||||
_lastNativeText: ?Stringish = null;
|
||||
_lastNativeSelection: ?Selection = null;
|
||||
_rafId: ?AnimationFrameID = null;
|
||||
@@ -869,7 +868,6 @@ class InternalTextInput extends React.Component<Props> {
|
||||
}
|
||||
|
||||
componentWillUnmount() {
|
||||
this._focusSubscription && this._focusSubscription.remove();
|
||||
if (this.isFocused()) {
|
||||
nullthrows(this._inputRef).blur();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user