mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
[rcr][ez] Clean up unused $read from rcr (#31136)
This commit is contained in:
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user