From f3d2e65f4333d951f13dd342f2f43522064f0960 Mon Sep 17 00:00:00 2001 From: Sebastian Markbage Date: Mon, 29 Jul 2024 18:21:20 -0400 Subject: [PATCH] Remove findHostInstanceByFiber --- packages/react-reconciler/src/ReactFiberReconciler.js | 9 --------- 1 file changed, 9 deletions(-) diff --git a/packages/react-reconciler/src/ReactFiberReconciler.js b/packages/react-reconciler/src/ReactFiberReconciler.js index fa6052e0efcac..4a423920badc9 100644 --- a/packages/react-reconciler/src/ReactFiberReconciler.js +++ b/packages/react-reconciler/src/ReactFiberReconciler.js @@ -827,14 +827,6 @@ if (__DEV__) { }; } -function findHostInstanceByFiber(fiber: Fiber): Instance | TextInstance | null { - const hostFiber = findCurrentHostFiber(fiber); - if (hostFiber === null) { - return null; - } - return hostFiber.stateNode; -} - function emptyFindFiberByHostInstance( instance: Instance | TextInstance, ): Fiber | null { @@ -863,7 +855,6 @@ export function injectIntoDevTools(devToolsConfig: DevToolsConfig): boolean { setSuspenseHandler, scheduleUpdate, currentDispatcherRef: ReactSharedInternals, - findHostInstanceByFiber, findFiberByHostInstance: findFiberByHostInstance || emptyFindFiberByHostInstance, // React Refresh