From b40631b3ccd60daba390c5f6e646ea9ad8ac79ab Mon Sep 17 00:00:00 2001 From: Pieter De Baets Date: Wed, 16 Dec 2015 16:15:38 -0800 Subject: [PATCH] Remove unused RKAnalyticsCPULogger Reviewed By: bryceredd Differential Revision: D2766801 fb-gh-sync-id: c5088c01bbae6a10b17317cc5ec2adcf157f415e --- React/Base/RCTBatchedBridge.m | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/React/Base/RCTBatchedBridge.m b/React/Base/RCTBatchedBridge.m index b4734ddd6..e23542773 100644 --- a/React/Base/RCTBatchedBridge.m +++ b/React/Base/RCTBatchedBridge.m @@ -29,12 +29,6 @@ [[[NSThread currentThread] name] isEqualToString:@"com.facebook.React.JavaScript"], \ @"This method must be called on JS thread") -/** - * Used by RKAnalyticsCPULogger - */ -NSString *const RCTEnqueueNotification = @"RCTEnqueueNotification"; -NSString *const RCTDequeueNotification = @"RCTDequeueNotification"; - /** * Must be kept in sync with `MessageQueue.js`. */ @@ -725,8 +719,6 @@ RCT_NOT_IMPLEMENTED(- (instancetype)initWithBundleURL:(__unused NSURL *)bundleUR { RCTAssertJSThread(); - [[NSNotificationCenter defaultCenter] postNotificationName:RCTEnqueueNotification object:self userInfo:nil]; - RCTJavaScriptCallback processResponse = ^(id json, NSError *error) { if (error) { RCTFatal(error); @@ -735,7 +727,6 @@ RCT_NOT_IMPLEMENTED(- (instancetype)initWithBundleURL:(__unused NSURL *)bundleUR if (!self.isValid) { return; } - [[NSNotificationCenter defaultCenter] postNotificationName:RCTDequeueNotification object:self userInfo:nil]; [self handleBuffer:json batchEnded:YES]; }; @@ -750,8 +741,6 @@ RCT_NOT_IMPLEMENTED(- (instancetype)initWithBundleURL:(__unused NSURL *)bundleUR { RCTAssertJSThread(); - [[NSNotificationCenter defaultCenter] postNotificationName:RCTEnqueueNotification object:self userInfo:nil]; - RCTJavaScriptCallback processResponse = ^(id json, NSError *error) { if (error) { RCTFatal(error); @@ -760,7 +749,6 @@ RCT_NOT_IMPLEMENTED(- (instancetype)initWithBundleURL:(__unused NSURL *)bundleUR if (!self.isValid) { return; } - [[NSNotificationCenter defaultCenter] postNotificationName:RCTDequeueNotification object:self userInfo:nil]; [self handleBuffer:json batchEnded:YES]; };