Skip to content

Commit 92f314c

Browse files
committed
Remove duplicate function
1 parent 92a6b5c commit 92f314c

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

src/Utilities/model.jl

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -208,17 +208,6 @@ function MOI.delete(model::AbstractModel, vis::Vector{VI})
208208
MOI.delete(model, vi)
209209
end
210210
end
211-
function MOI.delete(model::AbstractModel, vis::Vector{VI})
212-
# Delete `VectorOfVariables(vis)` constraints as otherwise, it will error
213-
# when removing variables one by one.
214-
vov_to_remove = broadcastvcat(constrs -> _vector_of_variables_with(constrs, vis), model)
215-
for ci in vov_to_remove
216-
MOI.delete(model, ci)
217-
end
218-
for vi in vis
219-
MOI.delete(model, vi)
220-
end
221-
end
222211

223212
function MOI.is_valid(model::AbstractModel,
224213
ci::CI{MOI.SingleVariable, S}) where {S}

0 commit comments

Comments
 (0)