From f962af64886ea16fd98cd5c12ebf494bba1189b4 Mon Sep 17 00:00:00 2001 From: klzgrad Date: Sat, 27 Jul 2024 10:18:11 +0800 Subject: [PATCH] third_party/jni_zero: Remove JNI functions --- src/third_party/jni_zero/BUILD.gn | 3 --- src/third_party/jni_zero/common_apis.cc | 7 ++----- 2 files changed, 2 insertions(+), 8 deletions(-) diff --git a/src/third_party/jni_zero/BUILD.gn b/src/third_party/jni_zero/BUILD.gn index e97d87adb0..99af79021b 100644 --- a/src/third_party/jni_zero/BUILD.gn +++ b/src/third_party/jni_zero/BUILD.gn @@ -50,9 +50,6 @@ component("jni_zero") { ":toolchain_define", ":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) { diff --git a/src/third_party/jni_zero/common_apis.cc b/src/third_party/jni_zero/common_apis.cc index 48fd38f78d..d55d422433 100644 --- a/src/third_party/jni_zero/common_apis.cc +++ b/src/third_party/jni_zero/common_apis.cc @@ -4,20 +4,17 @@ #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 { ScopedJavaLocalRef CollectionToArray( JNIEnv* env, const JavaRef& collection) { - return JNI_Collection::Java_Collection_toArray(env, collection); + return nullptr; } ScopedJavaLocalRef ArrayToList(JNIEnv* env, const JavaRef& array) { - return JNI_Arrays::Java_Arrays_asList(env, array); + return nullptr; } } // namespace jni_zero