Skip to content

Commit 0e15d79

Browse files
authored
Remove unused type annotation (#261)
1 parent 5ba05a6 commit 0e15d79

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/Certificate/Certificate.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ struct MaxDegree{CT <: SumOfSquares.SOSLikeCone, BT <: MB.AbstractPolynomialBasi
182182
basis::Type{BT}
183183
maxdegree::Int
184184
end
185-
function gram_basis(certificate::MaxDegree, poly) where CT
185+
function gram_basis(certificate::MaxDegree, poly)
186186
return maxdegree_gram_basis(certificate.basis, MP.variables(poly), certificate.maxdegree)
187187
end
188188
function gram_basis_type(::Type{MaxDegree{CT, BT}}) where {CT, BT}
@@ -205,7 +205,7 @@ struct FixedBasis{CT <: SumOfSquares.SOSLikeCone, BT <: MB.AbstractPolynomialBas
205205
cone::CT
206206
basis::BT
207207
end
208-
function gram_basis(certificate::FixedBasis, poly) where CT
208+
function gram_basis(certificate::FixedBasis, poly)
209209
return certificate.basis
210210
end
211211
function gram_basis_type(::Type{FixedBasis{CT, BT}}) where {CT, BT}

src/constraint.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ function JuMP.build_constraint(_error::Function, p, cone::SOSLikeCone; kws...)
216216
end
217217

218218
_non_constant(a::Vector{T}) where T = convert.(MOI.ScalarAffineFunction{T}, a)
219-
_non_constant(a::Vector{<:JuMP.AbstractJuMPScalar}) where T = moi_function.(a)
219+
_non_constant(a::Vector{<:JuMP.AbstractJuMPScalar}) = moi_function.(a)
220220
_non_constant(a::Vector{<:MOI.AbstractFunction}) = a
221221

222222
# Add constraint with `p` having coefficients being MOI functions.

0 commit comments

Comments
 (0)