From a201d08807970061a4a45cd7e72df79ab3b7da9c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Beno=C3=AEt=20Legat?= Date: Thu, 14 Dec 2023 14:37:20 +0100 Subject: [PATCH] Remove incorrect ConstraintPrimal method in favor of fallback (#27) --- src/MOI_wrapper.jl | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/MOI_wrapper.jl b/src/MOI_wrapper.jl index 89ec8b2..8644dc3 100644 --- a/src/MOI_wrapper.jl +++ b/src/MOI_wrapper.jl @@ -657,10 +657,6 @@ function MOI.get(optimizer::Optimizer, attr::MOI.ConstraintPrimal, MOI.check_result_index_bounds(optimizer, attr) return vectorize_block(MOI.get(optimizer, PrimalSolutionMatrix()), block(optimizer, ci), S) end -function MOI.get(optimizer::Optimizer, attr::MOI.ConstraintPrimal, ci::AFFEQ) - MOI.check_result_index_bounds(optimizer, attr) - return optimizer.b[ci.value] -end function MOI.get(optimizer::Optimizer, attr::MOI.ConstraintDual, ci::MOI.ConstraintIndex{MOI.VectorOfVariables, S}) where S<:SupportedSets