diff --git a/src/sorted_dict.jl b/src/sorted_dict.jl index db2afe34a..0598e8018 100644 --- a/src/sorted_dict.jl +++ b/src/sorted_dict.jl @@ -308,7 +308,7 @@ Returns the key type for SortedDict, SortedMultiDict and SortedSet. This function may also be applied to the type itself. Time: O(1) """ @inline Base.keytype(m::SortedDict{K,D,Ord}) where {K,D,Ord <: Ordering} = K -@inline Base.keytype(::Type{SortedDict{K,D,Ord}}) where {K,D,Ord <: Ordering} = K +@inline Base.valtype(m::SortedDict{K,D,Ord}) where {K,D,Ord <: Ordering} = D """ valtype(sc) @@ -316,8 +316,6 @@ This function may also be applied to the type itself. Time: O(1) Returns the value type for SortedDict and SortedMultiDict. This function may also be applied to the type itself. Time: O(1) """ -@inline Base.valtype(m::SortedDict{K,D,Ord}) where {K,D,Ord <: Ordering} = D -@inline Base.valtype(::Type{SortedDict{K,D,Ord}}) where {K,D,Ord <: Ordering} = D """ ordtype(sc) diff --git a/src/sorted_set.jl b/src/sorted_set.jl index 8547e91fc..a885137de 100644 --- a/src/sorted_set.jl +++ b/src/sorted_set.jl @@ -174,14 +174,6 @@ end return exactfound end -""" - eltype(sc) - -Returns the key type for SortedSet. -This function may also be applied to the type itself. Time: O(1) -""" -@inline Base.eltype(::Type{SortedSet{K,Ord}}) where {K,Ord <: Ordering} = K - """ keytype(sc)