Skip to content

Commit b11fdc0

Browse files
authored
Merge pull request #636 from KristofferC/kc/redundant_iterate
remove redundant iterate method
2 parents e795810 + 1c23fb1 commit b11fdc0

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

src/default_dict.jl

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -61,11 +61,6 @@ DefaultDictBase{K,V}(default::F; kwargs...) where {K,V,F} = DefaultDictBase{K,V,
6161
empty(d::DefaultDictBase{K,V,F}) where {K,V,F} = DefaultDictBase{K,V,F}(d.default; passkey=d.passkey)
6262
@deprecate similar(d::DefaultDictBase) empty(d)
6363

64-
function iterate(v::Base.ValueIterator{T}, i::Int) where {T <: DefaultDictBase}
65-
i > length(v.dict.d.vals) && return nothing
66-
return (v.dict.d.vals[i], Base.skip_deleted(v.dict.d, i+1))
67-
end
68-
6964
getindex(d::DefaultDictBase, key) = get!(d.d, key, d.default)
7065

7166
function getindex(d::DefaultDictBase{K,V,F}, key) where {K,V,F<:Base.Callable}

0 commit comments

Comments
 (0)