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: