Remove unused functionality in CxxModuleWrapper

Reviewed By: mhorowitz

Differential Revision: D4409789

fbshipit-source-id: 91e70d8333141e1e4dcba0e2620ef2c744d0c9d3
This commit is contained in:
Pieter De Baets
2017-01-30 06:39:49 -08:00
committed by Facebook Github Bot
parent 59226f022c
commit 2a638c2ee7
3 changed files with 12 additions and 222 deletions

View File

@@ -15,6 +15,8 @@ import com.facebook.soloader.SoLoader;
/**
* A Java Object which represents a cross-platform C++ module
*
* This module implements the NativeModule interface but will never be invoked from Java,
* instead the underlying Cxx module will be extracted by the bridge and called directly.
*/
@DoNotStrip
public class CxxModuleWrapper implements NativeModule
@@ -26,28 +28,6 @@ public class CxxModuleWrapper implements NativeModule
@DoNotStrip
private HybridData mHybridData;
@DoNotStrip
private static class MethodWrapper implements NativeMethod
{
@DoNotStrip
HybridData mHybridData;
MethodWrapper() {
mHybridData = initHybrid();
}
public native HybridData initHybrid();
@Override
public native void invoke(
CatalystInstance catalystInstance,
ExecutorToken executorToken,
ReadableNativeArray args);
@Override
public native String getType();
}
public CxxModuleWrapper(String library, String factory) {
SoLoader.loadLibrary(library);
mHybridData =
@@ -58,9 +38,9 @@ public class CxxModuleWrapper implements NativeModule
public native String getName();
@Override
public native Map<String, NativeMethod> getMethods();
public native String getConstantsJson();
public Map<String, NativeMethod> getMethods() {
throw new UnsupportedOperationException();
}
@Override
public void initialize() {