Skip to content

Commit 5ad45fd

Browse files
committed
missed one
1 parent b251586 commit 5ad45fd

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

src/indexing.jl

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -241,14 +241,6 @@ to_index(x::LinearIndices, i::AbstractArray{Bool}) = LogicalIndex{Int}(i)
241241
@inline to_index(x, i::CartesianIndex) = Tuple(i)
242242
@inline to_index(x, i::NDIndex) = Tuple(i)
243243
@inline to_index(x, i::AbstractArray{<:AbstractCartesianIndex}) = i
244-
@inline to_index(x, ::typeof(firstindex)) = offset1(x)
245-
@inline to_index(x, ::typeof(lastindex)) = static_lastindex(x)
246-
@inline function to_index(x, ::Base.Fix2{typeof(>),typeof(firstindex)})
247-
_add1(offset1(x)):static_lastindex(x)
248-
end
249-
@inline function to_index(x, ::Base.Fix2{<:Union{typeof(<),typeof(isless)},typeof(lastindex)})
250-
offset1(x):_sub1(static_lastindex(x))
251-
end
252244
@inline function to_index(x, i::Base.Fix2{<:Union{typeof(<),typeof(isless)},<:Union{Base.BitInteger,StaticInt}})
253245
offset1(x):min(_sub1(canonicalize(i.x)), static_lastindex(x))
254246
end

0 commit comments

Comments
 (0)