From 9742bcb4ba5dd466f2854bbdc1cb5dc696f7f07c Mon Sep 17 00:00:00 2001 From: Alexey Lang Date: Mon, 30 Oct 2017 07:57:44 -0700 Subject: [PATCH] Remove quicklog Reviewed By: AaaChiuuu Differential Revision: D6172832 fbshipit-source-id: d239ce8bef0918d3e90662258b6eabe3502f4897 --- .../src/main/java/com/facebook/quicklog/BUCK | 12 -- .../quicklog/QuickPerformanceLogger.java | 105 ------------------ .../QuickPerformanceLoggerProvider.java | 24 ---- .../quicklog/identifiers/ActionId.java | 51 --------- .../com/facebook/quicklog/identifiers/BUCK | 9 -- .../identifiers/ReactNativeBridge.java | 21 ---- 6 files changed, 222 deletions(-) delete mode 100644 ReactAndroid/src/main/java/com/facebook/quicklog/BUCK delete mode 100644 ReactAndroid/src/main/java/com/facebook/quicklog/QuickPerformanceLogger.java delete mode 100644 ReactAndroid/src/main/java/com/facebook/quicklog/QuickPerformanceLoggerProvider.java delete mode 100644 ReactAndroid/src/main/java/com/facebook/quicklog/identifiers/ActionId.java delete mode 100644 ReactAndroid/src/main/java/com/facebook/quicklog/identifiers/BUCK delete mode 100644 ReactAndroid/src/main/java/com/facebook/quicklog/identifiers/ReactNativeBridge.java diff --git a/ReactAndroid/src/main/java/com/facebook/quicklog/BUCK b/ReactAndroid/src/main/java/com/facebook/quicklog/BUCK deleted file mode 100644 index a1cbc52317c30e..00000000000000 --- a/ReactAndroid/src/main/java/com/facebook/quicklog/BUCK +++ /dev/null @@ -1,12 +0,0 @@ -include_defs("//ReactAndroid/DEFS") - -android_library( - name = "quicklog", - srcs = glob(["*.java"]), - exported_deps = [ - react_native_dep("java/com/facebook/quicklog/identifiers:identifiers"), - ], - visibility = [ - "PUBLIC", - ], -) diff --git a/ReactAndroid/src/main/java/com/facebook/quicklog/QuickPerformanceLogger.java b/ReactAndroid/src/main/java/com/facebook/quicklog/QuickPerformanceLogger.java deleted file mode 100644 index 788a5ba52f6b5f..00000000000000 --- a/ReactAndroid/src/main/java/com/facebook/quicklog/QuickPerformanceLogger.java +++ /dev/null @@ -1,105 +0,0 @@ -/** - * Copyright (c) 2015-present, Facebook, Inc. - * All rights reserved. - * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. - */ - -package com.facebook.quicklog; - -/** - * Stub implementation of QPL - */ -public class QuickPerformanceLogger { - - public void markerStart( - int markerId) { - } - - public void markerStart( - int markerId, - int instnaceKey) { - } - - public void markerStart( - int markerId, - int instnaceKey, - long timestamp) { - } - - public void markerEnd( - int markerId, - short actionId) { - } - - public void markerEnd( - int markerId, - int instanceKey, - short actionId) { - } - - public void markerEnd( - int markerId, - int instanceKey, - short actionId, - long timestamp) { - } - - public void markerNote( - int markerId, - short actionId) { - } - - public void markerNote( - int markerId, - int instanceKey, - short actionId) { - } - - public void markerNote( - int markerId, - int instanceKey, - short actionId, - long timestamp) { - } - - public void markerCancel( - int markerId) { - } - - public void markerCancel( - int markerId, - int instanceKey) { - } - - public void markerTag( - int markerId, - String tag) { - } - - public void markerTag( - int markerId, - int instanceKey, - String tag) { - } - - public void markerAnnotate( - int markerId, - String annotationKey, - String annotationValue) { - } - - public void markerAnnotate( - int markerId, - int instanceKey, - String annotationKey, - String annotationValue) { - } - - public long currentMonotonicTimestamp() { - return 0L; - } - -} diff --git a/ReactAndroid/src/main/java/com/facebook/quicklog/QuickPerformanceLoggerProvider.java b/ReactAndroid/src/main/java/com/facebook/quicklog/QuickPerformanceLoggerProvider.java deleted file mode 100644 index 903175bcf8c7fa..00000000000000 --- a/ReactAndroid/src/main/java/com/facebook/quicklog/QuickPerformanceLoggerProvider.java +++ /dev/null @@ -1,24 +0,0 @@ -/** - * Copyright (c) 2015-present, Facebook, Inc. - * All rights reserved. - * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. - */ - -package com.facebook.quicklog; - -/** - * Provides stub implementation of QPL - */ -public class QuickPerformanceLoggerProvider { - - private static final QuickPerformanceLogger sQuickPerformanceLogger = - new QuickPerformanceLogger(); - - public static QuickPerformanceLogger getQPLInstance() { - return sQuickPerformanceLogger; - } -} - diff --git a/ReactAndroid/src/main/java/com/facebook/quicklog/identifiers/ActionId.java b/ReactAndroid/src/main/java/com/facebook/quicklog/identifiers/ActionId.java deleted file mode 100644 index 1a55fdb48529ac..00000000000000 --- a/ReactAndroid/src/main/java/com/facebook/quicklog/identifiers/ActionId.java +++ /dev/null @@ -1,51 +0,0 @@ -/** - * Copyright (c) 2015-present; Facebook; Inc. - * All rights reserved. - * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. - */ - -package com.facebook.quicklog.identifiers; - -/** - * Stub implementation of Action Identifiers. - * Use your own implementation with you own implementation of QuickPerformanceLogger - */ -public class ActionId { - - /** Don't use this action identifier */ - public static short UNDEFINED = 0; - - /** This starts all markers */ - public static short START = 0; - - /** Successful termination of the marker */ - public static short SUCCESS = 0; - - /** Termination of marker due to some failure */ - public static short FAIL = 0; - - /** Termination of marker due to a cancellation */ - public static short CANCEL = 0; - - /** Some (general) drawing action has completed */ - public static short DRAW_COMPLETE = 0; - - /** General pause poshort */ - public static short PAUSE = 0; - - /** General resume poshort */ - public static short RESUME = 0; - - /** Insertion into a queue */ - public static short QUEUED = 0; - - /** Some error occurred */ - public static short ERROR = 0; - - /** Denoting a finally situation */ - public static short FINALLY = 0; -} - diff --git a/ReactAndroid/src/main/java/com/facebook/quicklog/identifiers/BUCK b/ReactAndroid/src/main/java/com/facebook/quicklog/identifiers/BUCK deleted file mode 100644 index 84d0ec3b1a2a69..00000000000000 --- a/ReactAndroid/src/main/java/com/facebook/quicklog/identifiers/BUCK +++ /dev/null @@ -1,9 +0,0 @@ -include_defs("//ReactAndroid/DEFS") - -android_library( - name = "identifiers", - srcs = glob(["*.java"]), - visibility = [ - "PUBLIC", - ], -) diff --git a/ReactAndroid/src/main/java/com/facebook/quicklog/identifiers/ReactNativeBridge.java b/ReactAndroid/src/main/java/com/facebook/quicklog/identifiers/ReactNativeBridge.java deleted file mode 100644 index bd1b5b3d5d5363..00000000000000 --- a/ReactAndroid/src/main/java/com/facebook/quicklog/identifiers/ReactNativeBridge.java +++ /dev/null @@ -1,21 +0,0 @@ -/** - * Copyright (c) 2015-present, Facebook, Inc. - * All rights reserved. - * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. - */ - -package com.facebook.quicklog.identifiers; - -/** - * Stub definition of identifier needed in react native open source code. - * Use your own identifiers with your own QuickPerformanceLogger implementation - */ -public class ReactNativeBridge { - - public static final int CALL_JAVA_MODULE_METHOD = 0; - -} -