From 6b738d1b2eb42e2fba6bd7c6cd246ff1d885a27a Mon Sep 17 00:00:00 2001 From: Aaron Chiu Date: Tue, 28 Feb 2017 20:03:14 -0800 Subject: [PATCH] remove getAllPerformanceCounters() function Reviewed By: fkgozali Differential Revision: D4626085 fbshipit-source-id: f07f5a72791176f075d3ce450af4c7ae4cd6fa5c --- .../facebook/react/bridge/ReactContext.java | 20 ------------------- 1 file changed, 20 deletions(-) diff --git a/ReactAndroid/src/main/java/com/facebook/react/bridge/ReactContext.java b/ReactAndroid/src/main/java/com/facebook/react/bridge/ReactContext.java index f83c2ba56..cf5f9e77f 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/bridge/ReactContext.java +++ b/ReactAndroid/src/main/java/com/facebook/react/bridge/ReactContext.java @@ -12,8 +12,6 @@ package com.facebook.react.bridge; import javax.annotation.Nullable; import java.lang.ref.WeakReference; -import java.util.HashMap; -import java.util.Map; import java.util.concurrent.CopyOnWriteArraySet; import android.app.Activity; @@ -28,10 +26,6 @@ import com.facebook.react.bridge.queue.MessageQueueThread; import com.facebook.react.bridge.queue.ReactQueueConfiguration; import com.facebook.react.common.LifecycleState; -import static com.facebook.react.common.LifecycleState.BEFORE_CREATE; -import static com.facebook.react.common.LifecycleState.BEFORE_RESUME; -import static com.facebook.react.common.LifecycleState.RESUMED; - /** * Abstract ContextWrapper for Android application or activity {@link Context} and * {@link CatalystInstance} @@ -180,20 +174,6 @@ public class ReactContext extends ContextWrapper { mLifecycleEventListeners.remove(listener); } - public Map> getAllPerformanceCounters() { - Map> totalPerfMap = - new HashMap<>(); - if (mCatalystInstance != null) { - for (NativeModule nativeModule : mCatalystInstance.getNativeModules()) { - if (nativeModule instanceof PerformanceCounter) { - PerformanceCounter perfCounterModule = (PerformanceCounter) nativeModule; - totalPerfMap.put(nativeModule.getName(), perfCounterModule.getPerformanceCounters()); - } - } - } - return totalPerfMap; - } - public void addActivityEventListener(ActivityEventListener listener) { mActivityEventListeners.add(listener); }