third_party/jni_zero: Remove JNI functions

This commit is contained in:
klzgrad 2024-07-27 10:18:11 +08:00
parent 16ffb4111e
commit f962af6488
2 changed files with 2 additions and 8 deletions

View File

@ -50,9 +50,6 @@ component("jni_zero") {
":toolchain_define", ":toolchain_define",
":jni_include_dir", ":jni_include_dir",
] ]
# Need to depend on the inner target to avoid a circular dependency.
deps = [ ":system_jni__action($default_toolchain)" ]
} }
if (enable_java_templates && is_android) { if (enable_java_templates && is_android) {

View File

@ -4,20 +4,17 @@
#include "third_party/jni_zero/common_apis.h" #include "third_party/jni_zero/common_apis.h"
#include "third_party/jni_zero/system_jni/Arrays_jni.h"
#include "third_party/jni_zero/system_jni/Collection_jni.h"
namespace jni_zero { namespace jni_zero {
ScopedJavaLocalRef<jobjectArray> CollectionToArray( ScopedJavaLocalRef<jobjectArray> CollectionToArray(
JNIEnv* env, JNIEnv* env,
const JavaRef<jobject>& collection) { const JavaRef<jobject>& collection) {
return JNI_Collection::Java_Collection_toArray(env, collection); return nullptr;
} }
ScopedJavaLocalRef<jobject> ArrayToList(JNIEnv* env, ScopedJavaLocalRef<jobject> ArrayToList(JNIEnv* env,
const JavaRef<jobjectArray>& array) { const JavaRef<jobjectArray>& array) {
return JNI_Arrays::Java_Arrays_asList(env, array); return nullptr;
} }
} // namespace jni_zero } // namespace jni_zero