Skip to content

Commit 4d74d75

Browse files
committed
any/all not needed
1 parent 25ddeaf commit 4d74d75

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

src/FillArrays.jl

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -629,13 +629,6 @@ function all(f::Function, IM::Eye{T}) where T
629629
return all(f(one(T)))
630630
end
631631

632-
# In particular, these make iszero(Eye(n)) efficient.
633-
# use any/all on scalar to get Boolean error message
634-
any(f::Function, x::AbstractFill) = !isempty(x) && any(f(getindex_value(x)))
635-
all(f::Function, x::AbstractFill) = isempty(x) || all(f(getindex_value(x)))
636-
any(x::AbstractFill) = any(identity, x)
637-
all(x::AbstractFill) = all(identity, x)
638-
639632
count(x::AbstractOnes{Bool}) = length(x)
640633
count(x::AbstractZeros{Bool}) = 0
641634
count(f, x::AbstractFill) = f(getindex_value(x)) ? length(x) : 0

0 commit comments

Comments
 (0)