Skip to content

Commit 9d23c7b

Browse files
committed
clean up old compat statements
1 parent 6c6b40d commit 9d23c7b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Polynomials.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -76,11 +76,11 @@ struct Poly{T}
7676
function (::Type{Poly})(a::AbstractVector{T}, var::SymbolLike = :x) where {T<:Number}
7777
# if a == [] we replace it with a = [0]
7878
if length(a) == 0
79-
return new{T}(zeros(T,1), @compat Symbol(var))
79+
return new{T}(zeros(T,1),Symbol(var))
8080
else
8181
# determine the last nonzero element and truncate a accordingly
8282
a_last = max(1,findlast(x->x!=zero(T), a))
83-
new{T}(a[1:a_last], @compat Symbol(var))
83+
new{T}(a[1:a_last], Symbol(var))
8484
end
8585
end
8686
end
@@ -349,7 +349,7 @@ end
349349

350350

351351
# are any values NaN
352-
hasnan(p::Poly) = reduce(|, (@compat isnan.(p.a)))
352+
hasnan(p::Poly) = reduce(|, (isnan.(p.a)))
353353

354354
function divrem(num::Poly{T}, den::Poly{S}) where {T, S}
355355
if num.var != den.var

0 commit comments

Comments
 (0)