mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-04-14 23:18:06 +08:00
clean up
Reviewed By: andreicoman11 Differential Revision: D3855861 fbshipit-source-id: 810d1ea4e6a64231356a4b6953f97de2f54d2558
This commit is contained in:
committed by
Facebook Github Bot 7
parent
d6926c5468
commit
6f75591620
@@ -11,7 +11,6 @@ package com.facebook.react.bridge;
|
||||
|
||||
import javax.annotation.Nullable;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.lang.reflect.InvocationTargetException;
|
||||
import java.lang.reflect.Method;
|
||||
import java.util.HashMap;
|
||||
@@ -447,21 +446,6 @@ public abstract class BaseJavaModule implements NativeModule {
|
||||
return assertNotNull(mHooks);
|
||||
}
|
||||
|
||||
@Override
|
||||
public final void writeConstantsField(JsonWriter writer, String fieldName) throws IOException {
|
||||
Map<String, Object> constants = getConstants();
|
||||
if (constants == null || constants.isEmpty()) {
|
||||
return;
|
||||
}
|
||||
|
||||
writer.name(fieldName).beginObject();
|
||||
for (Map.Entry<String, Object> constant : constants.entrySet()) {
|
||||
writer.name(constant.getKey());
|
||||
JsonWriterHelper.value(writer, constant.getValue());
|
||||
}
|
||||
writer.endObject();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void initialize() {
|
||||
// do nothing
|
||||
@@ -473,11 +457,6 @@ public abstract class BaseJavaModule implements NativeModule {
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onReactBridgeInitialized(ReactBridge bridge) {
|
||||
// do nothing
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onCatalystInstanceDestroy() {
|
||||
// do nothing
|
||||
|
||||
Reference in New Issue
Block a user