diff --git a/Project.toml b/Project.toml index 26bbea2..aa7ca29 100644 --- a/Project.toml +++ b/Project.toml @@ -4,7 +4,6 @@ repo = "https://github.com/JuliaAlgebra/DynamicPolynomials.jl.git" version = "0.6.4" [deps] -Future = "9fa8497b-333b-5362-9e8d-4d0656e87820" LinearAlgebra = "37e2e46d-f89d-539d-b4ee-838fcccc9c8e" MultivariatePolynomials = "102ac46a-7ee4-5c85-9060-abc95bfdeaa3" MutableArithmetics = "d8a4904e-b15c-11e9-3269-09a3773c0cb0" diff --git a/src/DynamicPolynomials.jl b/src/DynamicPolynomials.jl index b6a75b1..889877b 100644 --- a/src/DynamicPolynomials.jl +++ b/src/DynamicPolynomials.jl @@ -1,7 +1,5 @@ module DynamicPolynomials -import Future # For `copy!` - using Reexport @reexport using MultivariatePolynomials import MultivariatePolynomials as MP diff --git a/src/mono.jl b/src/mono.jl index 1fe95a0..d5b5a87 100644 --- a/src/mono.jl +++ b/src/mono.jl @@ -120,7 +120,7 @@ function __add_variables!( allvars::Vector{Variable{V,M}}, map, ) where {V,M} - Future.copy!(mono.vars, allvars) + copy!(mono.vars, allvars) tmp = copy(mono.z) resize!(mono.z, length(allvars)) fill!(mono.z, 0) diff --git a/src/monomial_vector.jl b/src/monomial_vector.jl index 4f3520b..95458e1 100644 --- a/src/monomial_vector.jl +++ b/src/monomial_vector.jl @@ -396,11 +396,11 @@ function __add_variables!( allvars::Vector{Variable{V,M}}, map, ) where {V,M} - Future.copy!(monos.vars, allvars) + copy!(monos.vars, allvars) if !isempty(monos.Z) tmp = similar(first(monos.Z)) for z in monos.Z - Future.copy!(tmp, z) + copy!(tmp, z) resize!(z, length(allvars)) fill!(z, 0) z[map] = tmp diff --git a/src/mult.jl b/src/mult.jl index bd63732..e422a4f 100644 --- a/src/mult.jl +++ b/src/mult.jl @@ -145,9 +145,9 @@ function MA.operate_to!( MP.mul_to_terms!(ts, q1, q2) # TODO do better than create tmp tmp = polynomial!(ts) - Future.copy!(p.a, tmp.a) - Future.copy!(p.x.vars, tmp.x.vars) - Future.copy!(p.x.Z, tmp.x.Z) + copy!(p.a, tmp.a) + copy!(p.x.vars, tmp.x.vars) + copy!(p.x.Z, tmp.x.Z) return p end end diff --git a/src/operators.jl b/src/operators.jl index cbe67b7..607fb65 100644 --- a/src/operators.jl +++ b/src/operators.jl @@ -85,7 +85,7 @@ function MA.operate_to!( end varsvec = [MP.variables(p), MP.variables(q)] allvars, maps = mergevars(varsvec) - Future.copy!(output.x.vars, allvars) + copy!(output.x.vars, allvars) empty!(output.a) empty!(output.x.Z) _plusorminus_to!(output.a, output.x.Z, op, p, q, maps, length(allvars)) diff --git a/src/poly.jl b/src/poly.jl index 119d608..f2b74d7 100644 --- a/src/poly.jl +++ b/src/poly.jl @@ -252,7 +252,7 @@ function polynomialclean_to!( adup::Vector{T}, Zdup::Vector{Vector{Int}}, ) where {V,M,T} - Future.copy!(p.x.vars, vars) + copy!(p.x.vars, vars) empty!(p.a) empty!(p.x.Z) removedups_to!(p.a, p.x.Z, adup, Zdup, M) @@ -374,7 +374,7 @@ function MP.map_coefficients_to!( ) resize!(output.a, length(p.a)) map!(f, output.a, p.a) - Future.copy!(output.x.vars, p.x.vars) + copy!(output.x.vars, p.x.vars) # TODO reuse the part of `Z` that is already in `output`. resize!(output.x.Z, length(p.x.Z)) for i in eachindex(p.x.Z) diff --git a/src/subs.jl b/src/subs.jl index 468f1cd..66e179b 100644 --- a/src/subs.jl +++ b/src/subs.jl @@ -101,7 +101,7 @@ function _subsmap( # Some variable may not be replaced vals = Vector{promote_type(_substype(s), Variable{V,M})}(undef, length(vars)) - Future.copy!(vals, vars) + copy!(vals, vars) fillmap!(vals, vars, s...) return vals end