Skip to content

Commit 7813e24

Browse files
elicwhitefacebook-github-bot
authored andcommitted
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
1 parent e483bd4 commit 7813e24

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

Libraries/Components/TextInput/TextInput.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -812,7 +812,6 @@ class InternalTextInput extends React.Component<Props> {
812812
};
813813

814814
_inputRef: null | React.ElementRef<HostComponent<mixed>> = null;
815-
_focusSubscription: ?Function = undefined;
816815
_lastNativeText: ?Stringish = null;
817816
_lastNativeSelection: ?Selection = null;
818817
_rafId: ?AnimationFrameID = null;
@@ -869,7 +868,6 @@ class InternalTextInput extends React.Component<Props> {
869868
}
870869

871870
componentWillUnmount() {
872-
this._focusSubscription && this._focusSubscription.remove();
873871
if (this.isFocused()) {
874872
nullthrows(this._inputRef).blur();
875873
}

0 commit comments

Comments
 (0)