Move closeablereference type init out of ImagePipelineFactory
@@ -17,7 +17,6 @@ import com.facebook.common.internal.Objects;
import com.facebook.common.internal.Preconditions;
import com.facebook.common.logging.FLog;
import com.facebook.common.memory.PooledByteBuffer;
-import com.facebook.common.references.CloseableReference;
import com.facebook.imageformat.ImageFormatChecker;
import com.facebook.imagepipeline.animated.factory.AnimatedFactory;
import com.facebook.imagepipeline.animated.factory.AnimatedFactoryProvider;
@@ -161,8 +160,6 @@ public class ImagePipelineFactory {
config.getExecutorSupplier().forLightweightBackgroundTasks())
: new ThreadHandoffProducerQueueImpl(
config.getExecutorSupplier().forLightweightBackgroundTasks());
- CloseableReference.setDisableCloseableReferencesForBitmaps(
- config.getExperiments().getBitmapCloseableRefType());
mCloseableReferenceFactory =
new CloseableReferenceFactory(config.getCloseableReferenceLeakTracker());
if (FrescoSystrace.isTracing()) {
