From 3c7d8e0cc1dfde5727c83d5a5bf3208d92dfe576 Mon Sep 17 00:00:00 2001 From: Joshua Gross Date: Mon, 29 Apr 2019 17:49:05 -0700 Subject: [PATCH] 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 --- .../paragraph/ParagraphComponentDescriptor.h | 19 +------------------ 1 file changed, 1 insertion(+), 18 deletions(-) diff --git a/ReactCommon/fabric/components/text/paragraph/ParagraphComponentDescriptor.h b/ReactCommon/fabric/components/text/paragraph/ParagraphComponentDescriptor.h index b730d1fd7e6..83a5292392f 100644 --- a/ReactCommon/fabric/components/text/paragraph/ParagraphComponentDescriptor.h +++ b/ReactCommon/fabric/components/text/paragraph/ParagraphComponentDescriptor.h @@ -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>( - "ReactNativeConfig") - ->getBool(paramName) - : false); - if (enableCache) { - measureCache_ = std::make_unique(); - } else { - measureCache_ = nullptr; - } + measureCache_ = std::make_unique(); } protected: