diff --git a/packages/react-native/Libraries/Image/RCTImageLoader.mm b/packages/react-native/Libraries/Image/RCTImageLoader.mm index 2f1db93ce3d4e1..46b267ccccaa42 100644 --- a/packages/react-native/Libraries/Image/RCTImageLoader.mm +++ b/packages/react-native/Libraries/Image/RCTImageLoader.mm @@ -26,18 +26,6 @@ using namespace facebook::react; -static BOOL imagePerfInstrumentationEnabled = NO; - -BOOL RCTImageLoadingPerfInstrumentationEnabled(void) -{ - return imagePerfInstrumentationEnabled; -} - -void RCTEnableImageLoadingPerfInstrumentation(BOOL enabled) -{ - imagePerfInstrumentationEnabled = enabled; -} - static NSInteger RCTImageBytesForImage(UIImage *image) { NSInteger singleImageBytes = (NSInteger)(image.size.width * image.size.height * image.scale * image.scale * 4); diff --git a/packages/react-native/Libraries/Image/RCTImageLoaderWithAttributionProtocol.h b/packages/react-native/Libraries/Image/RCTImageLoaderWithAttributionProtocol.h index 14997865e50dae..a70610c60219f5 100644 --- a/packages/react-native/Libraries/Image/RCTImageLoaderWithAttributionProtocol.h +++ b/packages/react-native/Libraries/Image/RCTImageLoaderWithAttributionProtocol.h @@ -10,9 +10,6 @@ #import #import -RCT_EXTERN BOOL RCTImageLoadingPerfInstrumentationEnabled(void); -RCT_EXTERN void RCTEnableImageLoadingPerfInstrumentation(BOOL enabled); - @protocol RCTImageLoaderWithAttributionProtocol // TODO (T61325135): Remove C++ checks