Skip to content

Commit bfa750b

Browse files
authored
delete some duplicate methods in test/utils.jl (#283)
This was causing warnings each time before the tests were ran.
1 parent fcb1b29 commit bfa750b

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

test/utils.jl

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ end
1919
struct CustomPoly{T,P<:AbstractPolynomial{T}} <: AbstractPolynomialLike{T}
2020
p::P
2121
end
22-
CustomPoly(p::AbstractPolynomial{T}) where {T} = CustomPoly{T,typeof(p)}(p)
2322
function MultivariatePolynomials.term_type(::Type{CustomPoly{T,P}}) where {T,P}
2423
return MultivariatePolynomials.term_type(P)
2524
end
@@ -39,7 +38,6 @@ Base.copy(p::CustomPoly) = CustomPoly(copy(p.p))
3938
struct CustomTerms{T,P<:AbstractPolynomial{T}} <: AbstractPolynomialLike{T}
4039
p::P
4140
end
42-
CustomTerms(p::AbstractPolynomial{T}) where {T} = CustomTerms{T,typeof(p)}(p)
4341
function MultivariatePolynomials.term_type(::Type{CustomTerms{T,P}}) where {T,P}
4442
return MultivariatePolynomials.term_type(P)
4543
end
@@ -50,9 +48,6 @@ function MultivariatePolynomials.monomial_type(
5048
) where {T,P}
5149
return monomial_type(P)
5250
end
53-
function MultivariatePolynomials.constant_monomial(p::CustomPoly)
54-
return constant_monomial(p.p)
55-
end
5651
Base.copy(p::CustomTerms) = CustomTerms(copy(p.p))
5752

5853
function _typetests(x, ::Type{T}) where {T}

0 commit comments

Comments
 (0)