Skip to content

Commit

Permalink
Remove redundant
Browse files Browse the repository at this point in the history
  • Loading branch information
lahmatiy committed Sep 7, 2023
1 parent ff1ec91 commit d46f8d7
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 9 deletions.
8 changes: 0 additions & 8 deletions src/publisher/react-integration/dispatcher-trap.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ import {
RerenderState,
TransferCallTracePoint,
HookInfo,
HookCompute,
} from "../types";
import { CoreApi } from "./core";
import { extractCallLoc, getParsedStackTrace } from "./utils/stackTrace";
Expand Down Expand Up @@ -110,7 +109,6 @@ export function createDispatcherTrap(
const fiberTypeInfo = new Map<number, any>();
const fiberRoot = new WeakMap<Fiber, FiberRoot>();
const rerenderStates = new WeakMap<Fiber, RerenderState[]>();
const fiberComputedMemo = new WeakMap<Fiber, HookCompute[]>();
const fiberSyncStorageHooks = new WeakMap<
Fiber,
{
Expand Down Expand Up @@ -465,9 +463,6 @@ export function createDispatcherTrap(
})
);
}
} else {
// reset stat on update
fiberComputedMemo.delete(currentFiber);
}

let nextCurrentRoot =
Expand Down Expand Up @@ -545,9 +540,6 @@ export function createDispatcherTrap(
getFiberTypeHookInfo(fiberTypeId: number) {
return fiberTypeInfo.get(fiberTypeId)?.hooks || [];
},
getFiberComputes(fiber: Fiber) {
return fiberComputedMemo.get(fiber) || [];
},
getFiberRerenders(fiber: Fiber) {
return rerenderStates.get(fiber);
},
Expand Down
1 change: 0 additions & 1 deletion src/publisher/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -499,7 +499,6 @@ export type MemoryLeakDetectionApi = {
export type ReactDispatcherTrapApi = {
getDispatchHookIndex: (dispatch: (state: any) => any) => number | null;
getFiberTypeHookInfo: (fiberTypeId: number) => HookInfo[];
getFiberComputes: (fiber: Fiber) => HookCompute[];
getFiberRerenders: (fiber: Fiber) => RerenderState[] | undefined;
flushDispatchCalls: (root: FiberRoot) => FiberDispatchCall[];
};
Expand Down

0 comments on commit d46f8d7

Please sign in to comment.