Skip to content

Commit

Permalink
delete more unnecessary code
Browse files Browse the repository at this point in the history
  • Loading branch information
nsajko committed Jan 18, 2025
1 parent f6cee50 commit 56bdef8
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions base/tuple.jl
Original file line number Diff line number Diff line change
Expand Up @@ -654,16 +654,6 @@ prod(x::Tuple{}) = 1
# than the general prod definition is available.
prod(x::Tuple{Int, Vararg{Int}}) = *(x...)

function identity end # method defined later

# `identity` and a singleton tuple of `Missing`
all(::typeof(identity), ::Tuple{Missing}) = missing
any(::typeof(identity), ::Tuple{Missing}) = missing

# singleton tuple
all(f, x::Tuple{Any}) = all(identity, (f(only(x)),))
any(f, x::Tuple{Any}) = any(identity, (f(only(x)),))

# a version of `in` esp. for NamedTuple, to make it pure, and not compiled for each tuple length
function sym_in(x::Symbol, itr::Tuple{Vararg{Symbol}})
@noinline
Expand Down

0 comments on commit 56bdef8

Please sign in to comment.