From 577a89861af89175e35108aed676b6a62b21b204 Mon Sep 17 00:00:00 2001 From: Neven Sajko Date: Sat, 25 Nov 2023 23:53:07 +0100 Subject: [PATCH] delete some duplicate methods in test/utils.jl This was causing warnings each time before the tests were ran. --- test/utils.jl | 5 ----- 1 file changed, 5 deletions(-) diff --git a/test/utils.jl b/test/utils.jl index d2d98553..e6e1b543 100644 --- a/test/utils.jl +++ b/test/utils.jl @@ -19,7 +19,6 @@ end struct CustomPoly{T,P<:AbstractPolynomial{T}} <: AbstractPolynomialLike{T} p::P end -CustomPoly(p::AbstractPolynomial{T}) where {T} = CustomPoly{T,typeof(p)}(p) function MultivariatePolynomials.term_type(::Type{CustomPoly{T,P}}) where {T,P} return MultivariatePolynomials.term_type(P) end @@ -39,7 +38,6 @@ Base.copy(p::CustomPoly) = CustomPoly(copy(p.p)) struct CustomTerms{T,P<:AbstractPolynomial{T}} <: AbstractPolynomialLike{T} p::P end -CustomTerms(p::AbstractPolynomial{T}) where {T} = CustomTerms{T,typeof(p)}(p) function MultivariatePolynomials.term_type(::Type{CustomTerms{T,P}}) where {T,P} return MultivariatePolynomials.term_type(P) end @@ -50,9 +48,6 @@ function MultivariatePolynomials.monomial_type( ) where {T,P} return monomial_type(P) end -function MultivariatePolynomials.constant_monomial(p::CustomPoly) - return constant_monomial(p.p) -end Base.copy(p::CustomTerms) = CustomTerms(copy(p.p)) function _typetests(x, ::Type{T}) where {T}