diff --git a/Libraries/Performance/QuickPerformanceLogger.js b/Libraries/Performance/QuickPerformanceLogger.js index 5b521eea289..9e8a6cd657c 100644 --- a/Libraries/Performance/QuickPerformanceLogger.js +++ b/Libraries/Performance/QuickPerformanceLogger.js @@ -53,22 +53,6 @@ const QuickPerformanceLogger = { }, markerAnnotate( - markerId: number, - annotationKey: string, - annotationValue: string, - instanceKey: number = DUMMY_INSTANCE_KEY, - ): void { - if (global.nativeQPLMarkerAnnotate) { - global.nativeQPLMarkerAnnotate( - markerId, - instanceKey, - annotationKey, - annotationValue, - ); - } - }, - - markerAnnotateWithMap( markerId: number, annotations: AnnotationsMap, instanceKey: number = DUMMY_INSTANCE_KEY, @@ -76,10 +60,10 @@ const QuickPerformanceLogger = { if (global.nativeQPLMarkerAnnotateWithMap) { global.nativeQPLMarkerAnnotateWithMap(markerId, annotations, instanceKey); } else if (global.nativeQPLMarkerAnnotate) { - for (var type of ['string']) { - var keyValsOfType = annotations[type]; - if (keyValsOfType !== null && keyValsOfType !== undefined) { - for (var annotationKey of Object.keys(keyValsOfType)) { + for (const type of ['string']) { + const keyValsOfType = annotations[type]; + if (keyValsOfType != null) { + for (const annotationKey of Object.keys(keyValsOfType)) { global.nativeQPLMarkerAnnotate( markerId, instanceKey,