Skip to content

Commit 814b144

Browse files
committed
drop support for Julia 0.4 and 0.5
1 parent ccd898e commit 814b144

File tree

3 files changed

+6
-14
lines changed

3 files changed

+6
-14
lines changed

.travis.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
11
language: julia
22
os:
33
- linux
4-
- osx
4+
# - osx # backlogged
55
julia:
6-
- 0.4
7-
- 0.5
6+
- 0.6
87
- nightly
98
notifications:
109
email: false

REQUIRE

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1 @@
1-
julia 0.4
2-
Compat 0.9.1
1+
julia 0.6

src/NaNMath.jl

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,15 @@
11
__precompile__()
22
module NaNMath
33

4-
using Compat
5-
64
for f in (:sin, :cos, :tan, :asin, :acos, :acosh, :atanh, :log, :log2, :log10,
75
:lgamma, :log1p)
86
@eval begin
97
($f)(x::Float64) = ccall(($(string(f)),Base.Math.libm), Float64, (Float64,), x)
108
($f)(x::Float32) = ccall(($(string(f,"f")),Base.Math.libm), Float32, (Float32,), x)
119
($f)(x::Real) = ($f)(float(x))
12-
if VERSION >= v"0.5.0-dev+4002"
13-
function ($f){T<:Number}(x::AbstractArray{T})
14-
Base.depwarn("$f{T<:Number}(x::AbstractArray{T}) is deprecated, use $f.(x) instead.", $f)
15-
return ($f).(x)
16-
end
17-
else
18-
($f){T<:Number}(x::AbstractArray{T}) = broadcast($f, x)
10+
function ($f){T<:Number}(x::AbstractArray{T})
11+
Base.depwarn("$f{T<:Number}(x::AbstractArray{T}) is deprecated, use $f.(x) instead.", $f)
12+
return ($f).(x)
1913
end
2014
end
2115
end

0 commit comments

Comments
 (0)