Skip to content

Commit

Permalink
Remove un-used code
Browse files Browse the repository at this point in the history
  • Loading branch information
odow authored Mar 30, 2021
1 parent 3e517d7 commit 8d7489d
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 @@ -970,16 +970,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 8d7489d

Please sign in to comment.