Skip to content

Commit d9d532f

Browse files
committed
Delete extraneous _convert definition
1 parent 02c2d69 commit d9d532f

File tree

1 file changed

+0
-4
lines changed
  • src/blocksparsearrayinterface

1 file changed

+0
-4
lines changed

src/blocksparsearrayinterface/map.jl

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,10 +40,6 @@ function viewblock_or_zeros(a::AbstractArray{<:Any,N}, I::Block{N}) where {N}
4040
return viewblock_or_zeros(a, Tuple(I)...)
4141
end
4242

43-
_convert(::Type{T}, a::AbstractArray) where {T} = convert(T, a)
44-
using LinearAlgebra: Diagonal
45-
_convert(::Type{T}, a::AbstractArray) where {T<:Diagonal} = convert(T, a)
46-
4743
function map_block!(f, a_dest::AbstractArray, I::Block, a_srcs::AbstractArray...)
4844
a_srcs_I = map(a_src -> viewblock_or_zeros(a_src, I), a_srcs)
4945
if isstored(a_dest, I)

0 commit comments

Comments
 (0)