Skip to content

Commit b45008b

Browse files
committed
Remove custom Base.view for UnsafeArray
Reduces risk of ambiguity with Base.view methods in other packages.
1 parent a430cc4 commit b45008b

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

src/unsafe_array.jl

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -68,15 +68,6 @@ Base.iscontiguous(::UnsafeArray) = true
6868
Base.iscontiguous(::Type{<:UnsafeArray}) = true
6969

7070

71-
Base.@propagate_inbounds Base.view(A::UnsafeArray) = Base.unsafe_view(A)
72-
73-
Base.@propagate_inbounds function Base.view(A::UnsafeArray, idx, I...)
74-
J = Base.to_indices(A, (idx, I...))
75-
@boundscheck checkbounds(A, J...)
76-
Base.unsafe_view(A, J...)
77-
end
78-
79-
8071
Base.@propagate_inbounds Base.unsafe_view(A::UnsafeArray{T,N}, I::Vararg{Base.ViewIndex,N}) where {T,N} =
8172
_unsafe_view_impl((), A, I...)
8273

0 commit comments

Comments
 (0)