Skip to content

Commit f993af0

Browse files
committed
Update following ArrayInterface release
1 parent 016bf94 commit f993af0

File tree

2 files changed

+2
-8
lines changed

2 files changed

+2
-8
lines changed

Project.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name = "StaticRanges"
22
uuid = "d8176aec-3168-11e9-3c98-e3954798be3a"
33
authors = ["zchristensen "]
4-
version = "0.8"
4+
version = "0.8.1"
55

66
[deps]
77
ArrayInterface = "4fba245c-0d91-5ea0-9b3e-6abc04ee57a9"

src/length.jl

+1-7
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ function _unit_range_length(start::T, stop::T) where {T<:Union{UInt,UInt64,UInt1
1313
return Int(Base.checked_add(stop - start, one(T)))
1414
end
1515
end
16+
1617
function _unit_range_length(start::T, stop::T) where {T}
1718
if start > stop
1819
return 0
@@ -76,13 +77,6 @@ lendiv(::LinSRange{T,B,E,L,D}) where {T,B,E,L,D} = D
7677

7778
lendiv(r::LinMRange) = getfield(r, :lendiv)
7879

79-
80-
# TODO remoe this once it's defined in ArrayInterface
81-
ArrayInterface.known_length(::Type{T}) where {T} = nothing
82-
83-
# some special cases to favor default Int type
84-
85-
8680
"""
8781
can_set_length(x) -> Bool
8882

0 commit comments

Comments
 (0)