Skip to content

Commit

Permalink
Delete old deprecation (#58)
Browse files Browse the repository at this point in the history
Julia 1.0 dropped this deprecation
  • Loading branch information
mlubin authored Jul 16, 2022
1 parent 6e5f40d commit 65a5928
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/NaNMath.jl
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,6 @@ for f in (:sin, :cos, :tan, :asin, :acos, :acosh, :atanh, :log, :log2, :log10,
($f)(x::Float64) = ccall(($(string(f)),libm), Float64, (Float64,), x)
($f)(x::Float32) = ccall(($(string(f,"f")),libm), Float32, (Float32,), x)
($f)(x::Real) = ($f)(float(x))
function ($f)(x::AbstractArray{T}) where T<:Number
Base.depwarn("$f{T<:Number}(x::AbstractArray{T}) is deprecated, use $f.(x) instead.", $f)
return ($f).(x)
end
end
end

Expand Down

0 comments on commit 65a5928

Please sign in to comment.