From 91c42a14c7a698fe6baeab770d3c2548fcdf32b4 Mon Sep 17 00:00:00 2001 From: lauren Date: Mon, 7 Oct 2024 12:39:14 -0400 Subject: [PATCH] [rcr][ez] Clean up unused $read from rcr (#31136) --- compiler/packages/react-compiler-runtime/src/index.ts | 8 -------- 1 file changed, 8 deletions(-) diff --git a/compiler/packages/react-compiler-runtime/src/index.ts b/compiler/packages/react-compiler-runtime/src/index.ts index cefc934ae1..823a49ab81 100644 --- a/compiler/packages/react-compiler-runtime/src/index.ts +++ b/compiler/packages/react-compiler-runtime/src/index.ts @@ -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} = {}; [ 'readContext',