Skip to content

Commit 60447bc

Browse files
committed
Remove Compat
1 parent 85e5c17 commit 60447bc

File tree

5 files changed

+7
-12
lines changed

5 files changed

+7
-12
lines changed

REQUIRE

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,2 @@
1-
julia 0.6
1+
julia 0.7
22
MultivariatePolynomials 0.1.3
3-
Compat 0.70

src/DynamicPolynomials.jl

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
module DynamicPolynomials
22

3-
using Compat
4-
53
using MultivariatePolynomials
64
const MP = MultivariatePolynomials
75

src/var.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,10 @@ end
3131

3232
# Variable vector x returned garanteed to be sorted so that if p is built with x then vars(p) == x
3333
macro polyvar(args...)
34-
Compat.reduce((x,y) -> :($x; $y), [buildpolyvar(PolyVar{true}, arg) for arg in args], init=:())
34+
reduce((x,y) -> :($x; $y), [buildpolyvar(PolyVar{true}, arg) for arg in args], init=:())
3535
end
3636
macro ncpolyvar(args...)
37-
Compat.reduce((x,y) -> :($x; $y), [buildpolyvar(PolyVar{false}, arg) for arg in args], init=:())
37+
reduce((x,y) -> :($x; $y), [buildpolyvar(PolyVar{false}, arg) for arg in args], init=:())
3838
end
3939

4040
struct PolyVar{C} <: AbstractVariable

test/mvp.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
using Compat.Pkg
1+
using Pkg
22
import MultivariatePolynomials
33
const mvp_test = joinpath(dirname(pathof(MultivariatePolynomials)), "..", "test")
44
const Mod = DynamicPolynomials

test/runtests.jl

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,14 @@
11
using DynamicPolynomials
22
using MultivariatePolynomials
3-
using Compat
4-
using Compat.Test
5-
using Compat.LinearAlgebra
3+
using Test
4+
using LinearAlgebra
65

76
include("mono.jl")
87
include("poly.jl")
98
include("comp.jl")
109

1110
module newmodule
12-
using Compat
13-
using Compat.Test
11+
using Test
1412
import DynamicPolynomials
1513
@testset "Polyvar macro hygiene" begin
1614
# Verify that the @polyvar macro works when the package has been activated

0 commit comments

Comments
 (0)