Skip to content

Commit 7947338

Browse files
committed
Remove unused function
1 parent 944f04f commit 7947338

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

src/types.jl

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -69,13 +69,6 @@ MP.nvariables(::Union{Term{C,M},Type{Term{C,M}},Polynomial{C,Term{C,M}},Type{<:P
6969
MP.variables(::Union{AbstractVector{PT},Type{<:AbstractVector{PT}}}) where {C,M<:Monomial,PT<:Union{MonomialLike,Term{C,M},Polynomial{C,Term{C,M}}}} = variables(PT)
7070
MP.nvariables(::Union{AbstractVector{PT},Type{<:AbstractVector{PT}}}) where {C,M<:Monomial,PT<:Union{MonomialLike,Term{C,M},Polynomial{C,Term{C,M}}}} = nvariables(PT)
7171

72-
# TODO replace by MP function
73-
function _error_for_negative_degree(deg)
74-
if deg < 0
75-
throw(ArgumentError("The degree should be a nonnegative number but the provided degree `$deg` is negative."))
76-
end
77-
end
78-
7972
function MP.monomials(vars::Tuple{Vararg{Variable}}, degree::Integer, filter::Function=m->true)
8073
return MP.monomials(vars, [degree], filter)
8174
end

0 commit comments

Comments
 (0)