Skip to content

Commit 8283337

Browse files
authored
remove BroadcastStyle specialization for BlockRange{1} (#293)
1 parent e0f2992 commit 8283337

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

src/blockindices.jl

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -355,7 +355,6 @@ BlockRange(sizes::Vararg{Integer}) = BlockRange(sizes)
355355

356356
(:)(start::Block{1}, stop::Block{1}) = BlockRange((first(start.n):first(stop.n),))
357357
(:)(start::Block, stop::Block) = throw(ArgumentError("Use `BlockRange` to construct a cartesian range of blocks"))
358-
Base.BroadcastStyle(::Type{<:BlockRange{1}}) = DefaultArrayStyle{1}()
359358
broadcasted(::DefaultArrayStyle{1}, ::Type{Block}, r::AbstractUnitRange) = BlockRange((r,))
360359
broadcasted(::DefaultArrayStyle{1}, ::Type{Int}, block_range::BlockRange{1}) = first(block_range.indices)
361360
broadcasted(::DefaultArrayStyle{0}, ::Type{Int}, block::Block{1}) = Int(block)

0 commit comments

Comments
 (0)