From 7813e24cdb55b0716df019edc0d875730bf65169 Mon Sep 17 00:00:00 2001 From: Eli White Date: Wed, 20 Nov 2019 18:06:57 -0800 Subject: [PATCH] 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 --- Libraries/Components/TextInput/TextInput.js | 2 -- 1 file changed, 2 deletions(-) diff --git a/Libraries/Components/TextInput/TextInput.js b/Libraries/Components/TextInput/TextInput.js index be581000280..65aed75fe39 100644 --- a/Libraries/Components/TextInput/TextInput.js +++ b/Libraries/Components/TextInput/TextInput.js @@ -812,7 +812,6 @@ class InternalTextInput extends React.Component { }; _inputRef: null | React.ElementRef> = null; - _focusSubscription: ?Function = undefined; _lastNativeText: ?Stringish = null; _lastNativeSelection: ?Selection = null; _rafId: ?AnimationFrameID = null; @@ -869,7 +868,6 @@ class InternalTextInput extends React.Component { } componentWillUnmount() { - this._focusSubscription && this._focusSubscription.remove(); if (this.isFocused()) { nullthrows(this._inputRef).blur(); }