diff --git a/implementation/BUILD b/implementation/BUILD index 079548f3..096ae00a 100644 --- a/implementation/BUILD +++ b/implementation/BUILD @@ -41,21 +41,15 @@ cc_library( name = "array_ref", hdrs = ["array_ref.h"], deps = [ - ":array", ":array_view", - ":class", ":class_ref", - ":default_class_loader", ":forward_declarations", - ":jni_type", ":local_object", - ":object_ref", + ":no_idx", ":promotion_mechanics_tags", - ":ref_base", "//:jni_dep", "//implementation/jni_helper:jni_array_helper", "//implementation/jni_helper:lifecycle", - "//implementation/jni_helper:lifecycle_object", ], ) diff --git a/implementation/array_ref.h b/implementation/array_ref.h index 168b6a26..17563e43 100644 --- a/implementation/array_ref.h +++ b/implementation/array_ref.h @@ -19,7 +19,9 @@ // IWYU pragma: private, include "third_party/jni_wrapper/jni_bind.h" +#include #include +#include #include "implementation/array_view.h" #include "implementation/class_ref.h" @@ -27,6 +29,7 @@ #include "implementation/jni_helper/jni_array_helper.h" #include "implementation/jni_helper/lifecycle.h" #include "implementation/local_object.h" +#include "implementation/no_idx.h" #include "implementation/promotion_mechanics_tags.h" #include "jni_dep.h" @@ -50,10 +53,6 @@ class ArrayRef : public ScopedArrayImpl { : Base(AdoptLocal{}, JniArrayHelper::NewArray(size)) {} - template - ArrayRef(const ArrayViewHelper& array_view_helper) - : Base(AdoptLocal{}, array_view_helper.val) {} - explicit ArrayRef(int size) : ArrayRef(static_cast(size)) {} ArrayView Pin(bool copy_on_completion = true) { @@ -133,9 +132,9 @@ class ArrayRef< // e.g. // LocalArray arr { 5, LocalObject {args...} }; // LocalArray arr { 5, GlobalObject {args...} }; - template