Skip to content

Commit

Permalink
Remove findHostInstanceByFiber
Browse files Browse the repository at this point in the history
  • Loading branch information
sebmarkbage committed Jul 29, 2024
1 parent ec98d36 commit f3d2e65
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions packages/react-reconciler/src/ReactFiberReconciler.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -863,7 +855,6 @@ export function injectIntoDevTools(devToolsConfig: DevToolsConfig): boolean {
setSuspenseHandler,
scheduleUpdate,
currentDispatcherRef: ReactSharedInternals,
findHostInstanceByFiber,
findFiberByHostInstance:
findFiberByHostInstance || emptyFindFiberByHostInstance,
// React Refresh
Expand Down

0 comments on commit f3d2e65

Please sign in to comment.