mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-05-04 21:09:21 +08:00
Remove unused functionality in CxxModuleWrapper
Reviewed By: mhorowitz Differential Revision: D4409789 fbshipit-source-id: 91e70d8333141e1e4dcba0e2620ef2c744d0c9d3
This commit is contained in:
committed by
Facebook Github Bot
parent
59226f022c
commit
2a638c2ee7
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user