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:
Eli White
2019-11-20 18:09:30 -08:00
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();
}