mirror of
https://github.com/klzgrad/naiveproxy.git
synced 2024-11-30 01:06:09 +03:00
third_party/jni_zero: Remove JNI functions
This commit is contained in:
parent
16ffb4111e
commit
f962af6488
3
src/third_party/jni_zero/BUILD.gn
vendored
3
src/third_party/jni_zero/BUILD.gn
vendored
@ -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) {
|
||||||
|
7
src/third_party/jni_zero/common_apis.cc
vendored
7
src/third_party/jni_zero/common_apis.cc
vendored
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user