Skip to content

Commit

Permalink
[rcr][ez] Clean up unused $read from rcr
Browse files Browse the repository at this point in the history
ghstack-source-id: 5c21fb71ea8da2d5c50046796ce2904f99118b1e
Pull Request resolved: #31110
  • Loading branch information
poteto committed Oct 7, 2024
1 parent 1460d67 commit d94777e
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions compiler/packages/react-compiler-runtime/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,14 +36,6 @@ export function c(size: number) {
})[0];
}

export function $read(memoCache: MemoCache, index: number) {
const value = memoCache[index];
if (value === $empty) {
throw new Error('useMemoCache: read before write');
}
return value;
}

const LazyGuardDispatcher: {[key: string]: (...args: Array<any>) => any} = {};
[
'readContext',
Expand Down

0 comments on commit d94777e

Please sign in to comment.