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: 972ab3c77cb4f08e977a89939177954c016d2e9b
Pull Request resolved: #31110
  • Loading branch information
poteto committed Oct 1, 2024
1 parent 1140261 commit b5ab110
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 @@ -41,14 +41,6 @@ export const c =
}, []);
};

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 b5ab110

Please sign in to comment.