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:
Joshua Gross
2019-04-29 17:49:05 -07:00
committed by Facebook Github Bot
parent 88c18fa93b
commit 3c7d8e0cc1

View File

@@ -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: