Skip to content

Commit

Permalink
Remove un-used code (#2546)
Browse files Browse the repository at this point in the history
  • Loading branch information
odow authored Apr 6, 2021
1 parent f1d41eb commit 41e4bf0
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions src/JuMP.jl
Original file line number Diff line number Diff line change
Expand Up @@ -984,16 +984,6 @@ function Base.one(::Type{V}) where {V<:AbstractVariableRef}
end
Base.one(v::AbstractVariableRef) = one(typeof(v))

mutable struct VariableNotOwnedError <: Exception
context::String
end
function Base.showerror(io::IO, ex::VariableNotOwnedError)
return print(
io,
"VariableNotOwnedError: Variable not owned by model present in $(ex.context)",
)
end

_moi_optimizer_index(model::MOI.AbstractOptimizer, index::MOI.Index) = index
function _moi_optimizer_index(model::MOIU.CachingOptimizer, index::MOI.Index)
if MOIU.state(model) == MOIU.NO_OPTIMIZER
Expand Down

0 comments on commit 41e4bf0

Please sign in to comment.