diff --git a/packages/react-native/ReactAndroid/src/main/java/com/facebook/hermes/reactexecutor/HermesExecutor.java b/packages/react-native/ReactAndroid/src/main/java/com/facebook/hermes/reactexecutor/HermesExecutor.java index c8d81b725d282e..514121bbf89ac4 100644 --- a/packages/react-native/ReactAndroid/src/main/java/com/facebook/hermes/reactexecutor/HermesExecutor.java +++ b/packages/react-native/ReactAndroid/src/main/java/com/facebook/hermes/reactexecutor/HermesExecutor.java @@ -42,15 +42,6 @@ public String getName() { return "HermesExecutor" + mode_; } - /** - * Return whether this class can load a file at the given path, based on a binary compatibility - * check between the contents of the file and the Hermes VM. - * - * @param path the path containing the file to inspect. - * @return whether the given file is compatible with the Hermes VM. - */ - public static native boolean canLoadFile(String path); - private static native HybridData initHybridDefaultConfig( boolean enableDebugger, String debuggerName); diff --git a/packages/react-native/ReactAndroid/src/main/jni/react/hermes/reactexecutor/OnLoad.cpp b/packages/react-native/ReactAndroid/src/main/jni/react/hermes/reactexecutor/OnLoad.cpp index 0df6d96a84de44..035b511e35515f 100644 --- a/packages/react-native/ReactAndroid/src/main/jni/react/hermes/reactexecutor/OnLoad.cpp +++ b/packages/react-native/ReactAndroid/src/main/jni/react/hermes/reactexecutor/OnLoad.cpp @@ -90,17 +90,12 @@ class HermesExecutorHolder return makeCxxInstance(std::move(factory)); } - static bool canLoadFile(jni::alias_ref, const std::string& path) { - return true; - } - static void registerNatives() { registerHybrid( {makeNativeMethod("initHybrid", HermesExecutorHolder::initHybrid), makeNativeMethod( "initHybridDefaultConfig", - HermesExecutorHolder::initHybridDefaultConfig), - makeNativeMethod("canLoadFile", HermesExecutorHolder::canLoadFile)}); + HermesExecutorHolder::initHybridDefaultConfig)}); } private: