mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-03-06 17:34:07 +08:00
Remove paragraph_measure_cache experiment code
Summary: QE expired a while ago. Remove the experiment code. Reviewed By: fkgozali Differential Revision: D15133830 fbshipit-source-id: 562c3998cc7860497eefa9899dfb6bfcee4fe210
This commit is contained in:
committed by
Facebook Github Bot
parent
88c18fa93b
commit
3c7d8e0cc1
@@ -35,24 +35,7 @@ class ParagraphComponentDescriptor final
|
||||
// Every single `ParagraphShadowNode` will have a reference to
|
||||
// a shared `EvictingCacheMap`, a simple LRU cache for Paragraph
|
||||
// measurements.
|
||||
#ifdef ANDROID
|
||||
auto paramName = "react_fabric:enabled_paragraph_measure_cache_android";
|
||||
#else
|
||||
auto paramName = "react_fabric:enabled_paragraph_measure_cache_ios";
|
||||
#endif
|
||||
// TODO: T39927960 - get rid of this if statement
|
||||
bool enableCache =
|
||||
(contextContainer != nullptr
|
||||
? contextContainer
|
||||
->getInstance<std::shared_ptr<const ReactNativeConfig>>(
|
||||
"ReactNativeConfig")
|
||||
->getBool(paramName)
|
||||
: false);
|
||||
if (enableCache) {
|
||||
measureCache_ = std::make_unique<ParagraphMeasurementCache>();
|
||||
} else {
|
||||
measureCache_ = nullptr;
|
||||
}
|
||||
measureCache_ = std::make_unique<ParagraphMeasurementCache>();
|
||||
}
|
||||
|
||||
protected:
|
||||
|
||||
Reference in New Issue
Block a user