Skip to content

Commit 68469a1

Browse files
committed
remove AbstractArray special unsafe_view
1 parent c830dfd commit 68469a1

File tree

1 file changed

+0
-15
lines changed

1 file changed

+0
-15
lines changed

src/blockindexrange.jl

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -104,21 +104,6 @@ end
104104
return reshape(view(A.parent, I[1:M]...), Val(N))
105105
end
106106

107-
@inline function Base.unsafe_view(
108-
A::AbstractArray{<:Any, N},
109-
I::Vararg{BlockSlice{<:BlockIndexRange{1}}, N}) where {N}
110-
@_propagate_inbounds_meta
111-
return view(A, map(x -> x.indices, I)...)
112-
end
113-
114-
# Disambiguation
115-
@inline function Base.unsafe_view(
116-
A::SubArray,
117-
I::Vararg{BlockSlice{<:BlockIndexRange{1}}, N}) where {N}
118-
@_propagate_inbounds_meta
119-
return view(A, map(x -> x.indices, I)...)
120-
end
121-
122107

123108
# #################
124109
# # support for pointers

0 commit comments

Comments
 (0)