Skip to content

Commit 622772d

Browse files
mbaumanKeno
authored andcommitted
Remove start/next/done remnants
1 parent e86c5b6 commit 622772d

File tree

3 files changed

+0
-41
lines changed

3 files changed

+0
-41
lines changed

base/essentials.jl

Lines changed: 0 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -690,43 +690,6 @@ function invokelatest(@nospecialize(f), @nospecialize args...; kwargs...)
690690
Core._apply_latest(inner)
691691
end
692692

693-
# iteration protocol
694-
695-
"""
696-
next(iter, state) -> item, state
697-
698-
For a given iterable object and iteration state, return the current item and the next iteration state.
699-
700-
# Examples
701-
```jldoctest
702-
julia> next(1:5, 3)
703-
(3, 4)
704-
705-
julia> next(1:5, 5)
706-
(5, 6)
707-
```
708-
"""
709-
function next end
710-
711-
"""
712-
start(iter) -> state
713-
714-
Get initial iteration state for an iterable object.
715-
716-
# Examples
717-
```jldoctest
718-
julia> start(1:5)
719-
1
720-
721-
julia> start([1;2;3])
722-
1
723-
724-
julia> start([4;2;3])
725-
1
726-
```
727-
"""
728-
function start end
729-
730693
"""
731694
isempty(collection) -> Bool
732695

base/exports.jl

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -618,9 +618,6 @@ export
618618
set_zero_subnormals,
619619

620620
# iteration
621-
done,
622-
next,
623-
start,
624621
iterate,
625622

626623
enumerate, # re-exported from Iterators

contrib/precompile_explicit.jl

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -474,7 +474,6 @@ precompile(Tuple{typeof(Base.similar), Type{Array{Method, N} where N}, Tuple{Bas
474474
precompile(Tuple{typeof(Base.sizeof), String})
475475
precompile(Tuple{typeof(Base.skip_deleted_floor!), Base.Dict{Symbol, Any}})
476476
precompile(Tuple{typeof(Base.sort!), Array{Int64, 1}, Base.Sort.QuickSortAlg, Base.Order.Perm{Base.Order.ForwardOrdering, Array{Tuple{Float64, Int64}, 1}}})
477-
precompile(Tuple{typeof(Base.start), Nothing})
478477
precompile(Tuple{typeof(Base.startswith), Base.SubString{String}, String})
479478
precompile(Tuple{typeof(Base.startswith), String, Char})
480479
precompile(Tuple{typeof(Base.stream_wait), Base.Timer, Base.Condition})

0 commit comments

Comments
 (0)