From a1f2330ebb6063cde4649c99dd7a3161e9d75079 Mon Sep 17 00:00:00 2001 From: Ruslan Lesiutin Date: Thu, 9 Nov 2023 11:09:10 -0800 Subject: [PATCH] cleanup[Inspector]: remove unused code (#41292) Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/41292 Changelog: [Internal] Seems to be unused Reviewed By: javache Differential Revision: D50559548 fbshipit-source-id: 4bf7c27cb75e567c43adfa5aa4c120c67ef4dd5e --- packages/react-native/Libraries/Inspector/Inspector.js | 6 ------ 1 file changed, 6 deletions(-) diff --git a/packages/react-native/Libraries/Inspector/Inspector.js b/packages/react-native/Libraries/Inspector/Inspector.js index 7fb5acee9a9..312de6f029f 100644 --- a/packages/react-native/Libraries/Inspector/Inspector.js +++ b/packages/react-native/Libraries/Inspector/Inspector.js @@ -57,8 +57,6 @@ class Inspector extends React.Component< ... }, > { - _hideTimeoutID: TimeoutID | null = null; - _subs: ?Array<() => void>; _setTouchedViewData: ?(TouchedViewDataAtPoint) => void; constructor(props: Props) { @@ -77,10 +75,6 @@ class Inspector extends React.Component< } componentWillUnmount() { - if (this._subs) { - this._subs.map(fn => fn()); - } - this._setTouchedViewData = null; }