Skip to content

Commit

Permalink
iOS: Removed unused helper methods for image instrumentation
Browse files Browse the repository at this point in the history
Summary:
These helpers are no longer in use, let's remove them.

Changelog: [Internal]

Reviewed By: p-sun

Differential Revision: D27557211

fbshipit-source-id: 5dd670b8615ed336745e390134983adea36a8a99
  • Loading branch information
fkgozali authored and facebook-github-bot committed Apr 7, 2021
1 parent 28ed660 commit 3dda7ee
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 17 deletions.
12 changes: 0 additions & 12 deletions Libraries/Image/RCTImageLoader.mm
Original file line number Diff line number Diff line change
Expand Up @@ -38,18 +38,6 @@ void RCTEnableImageLoadingPerfInstrumentation(BOOL enabled)
imagePerfInstrumentationEnabled = enabled;
}

static BOOL (^getImagePerfInstrumentationForFabricEnabled)() = (^BOOL () {
return NO;
});

BOOL RCTGetImageLoadingPerfInstrumentationForFabricEnabled() {
return getImagePerfInstrumentationForFabricEnabled();
}

void RCTSetImageLoadingPerfInstrumentationForFabricEnabledBlock(BOOL (^getMobileConfigEnabled)()) {
getImagePerfInstrumentationForFabricEnabled = getMobileConfigEnabled;
}

static NSInteger RCTImageBytesForImage(UIImage *image)
{
NSInteger singleImageBytes = image.size.width * image.size.height * image.scale * image.scale * 4;
Expand Down
5 changes: 0 additions & 5 deletions Libraries/Image/RCTImageLoaderWithAttributionProtocol.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,9 @@
#import <React/RCTImageLoaderProtocol.h>
#import <React/RCTImageURLLoaderWithAttribution.h>

RCT_EXTERN BOOL RCTImageLoadingInstrumentationEnabled(void);
RCT_EXTERN BOOL RCTImageLoadingPerfInstrumentationEnabled(void);
RCT_EXTERN void RCTEnableImageLoadingInstrumentation(BOOL enabled);
RCT_EXTERN void RCTEnableImageLoadingPerfInstrumentation(BOOL enabled);

RCT_EXTERN BOOL RCTGetImageLoadingPerfInstrumentationForFabricEnabled();
RCT_EXTERN void RCTSetImageLoadingPerfInstrumentationForFabricEnabledBlock(BOOL (^getEnabled)());

@protocol RCTImageLoaderWithAttributionProtocol<RCTImageLoaderProtocol, RCTImageLoaderLoggableProtocol>

// TODO (T61325135): Remove C++ checks
Expand Down

0 comments on commit 3dda7ee

Please sign in to comment.