Skip to content

Commit a390bca

Browse files
committed
remove stale broadcasted_indices:
- referenced non-extant `indices` - `broadcasted_indices` was deprecated to `broadcasted_axes` in JuliaLang/julia#25377 - `broadcasted_axes` was then replaced by plain `axes` JuliaLang/julia@a2feccf - StaticArrays already has `axes` methods
1 parent ec2dc5e commit a390bca

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

src/broadcast.jl

-2
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,6 @@ _bcs1(a::Base.OneTo, b::SOneTo) = _bcs1(a, Base.OneTo(b))
4949
## Internal broadcast machinery for StaticArrays ##
5050
###################################################
5151

52-
broadcast_indices(A::StaticArray) = indices(A)
53-
5452
# TODO: just use map(broadcast_size, as)?
5553
@inline broadcast_sizes(a, as...) = (broadcast_size(a), broadcast_sizes(as...)...)
5654
@inline broadcast_sizes() = ()

test/broadcast.jl

+1-1
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ end
115115
# Issue #200: broadcast with Adjoint
116116
@test @inferred(v1 .+ v2') === @SMatrix [2 5; 3 6]
117117
@test @inferred(v1 .+ transpose(v2)) === @SMatrix [2 5; 3 6]
118-
# Issue 382: infinite recursion in Base.Broadcast.broadcast_indices with Adjoint
118+
# Issue 382: infinite recursion in broadcasting axes with Adjoint
119119
@test @inferred(SVector(1,1)' .+ [1, 1]) == [2 2; 2 2]
120120
@test @inferred(transpose(SVector(1,1)) .+ [1, 1]) == [2 2; 2 2]
121121

0 commit comments

Comments
 (0)