Skip to content

Commit 91c42a1

Browse files
authored
[rcr][ez] Clean up unused $read from rcr (#31136)
1 parent 1460d67 commit 91c42a1

File tree

1 file changed

+0
-8
lines changed
  • compiler/packages/react-compiler-runtime/src

1 file changed

+0
-8
lines changed

compiler/packages/react-compiler-runtime/src/index.ts

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -36,14 +36,6 @@ export function c(size: number) {
3636
})[0];
3737
}
3838

39-
export function $read(memoCache: MemoCache, index: number) {
40-
const value = memoCache[index];
41-
if (value === $empty) {
42-
throw new Error('useMemoCache: read before write');
43-
}
44-
return value;
45-
}
46-
4739
const LazyGuardDispatcher: {[key: string]: (...args: Array<any>) => any} = {};
4840
[
4941
'readContext',

0 commit comments

Comments
 (0)