[rcr][ez] Clean up unused $read from rcr (#31136)
lauren committed
Oct 7, 2024 at 12:39 UTC
91c42a14c7a698fe6baeab770d3c2548fcdf32b4
1 file changed
-8
compiler/packages/react-compiler-runtime/src/index.ts
-8
@@ -36,14 +36,6 @@ export function c(size: number) {
36
})[0];
37
}
38
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
-
39
const LazyGuardDispatcher: {[key: string]: (...args: Array<any>) => any} = {};
40
[
41
'readContext',