Reviewed By: andreicoman11

Differential Revision: D3855861

fbshipit-source-id: 810d1ea4e6a64231356a4b6953f97de2f54d2558
This commit is contained in:
Aaron Chiu
2016-09-13 08:07:10 -07:00
committed by Facebook Github Bot 7
parent d6926c5468
commit 6f75591620
4 changed files with 10 additions and 65 deletions

View File

@@ -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