Skip to content

Commit

Permalink
Remove unused axes method
Browse files Browse the repository at this point in the history
  • Loading branch information
jishnub committed Apr 3, 2024
1 parent 16fe343 commit 4582f1d
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/blockaxis.jl
Original file line number Diff line number Diff line change
Expand Up @@ -353,10 +353,6 @@ blocksizes(A) = map(blocklengths, axes(A))
blocksizes(A,i) = blocklengths(axes(A,i))

axes(b::AbstractBlockedUnitRange) = (BlockedOneTo(blocklasts(b) .- (first(b)-1)),)
function axes(b::AbstractBlockedUnitRange{<:Any,<:RangeCumsum}, d::Int)
d <= 1 && return axes(b)[d]
return BlockedOneTo(oftype(b.lasts, RangeCumsum(Base.OneTo(1))))
end
unsafe_indices(b::AbstractBlockedUnitRange) = axes(b)
# ::Integer works around case where blocklasts might return different type
last(b::AbstractBlockedUnitRange)::Integer = isempty(blocklasts(b)) ? first(b)-1 : last(blocklasts(b))
Expand Down

0 comments on commit 4582f1d

Please sign in to comment.