From fddd94e2888e8d031ce8fc3ca951d84b1aec9d62 Mon Sep 17 00:00:00 2001 From: odow Date: Mon, 26 Jul 2021 17:03:47 +1200 Subject: [PATCH] [breaking] remove index_value function --- src/indextypes.jl | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/indextypes.jl b/src/indextypes.jl index 4b026a59cc..f142135417 100644 --- a/src/indextypes.jl +++ b/src/indextypes.jl @@ -19,7 +19,6 @@ index.value == MOI.get(model, MOI.ConstraintFunction(), index).variable.value struct ConstraintIndex{F,S} value::Int64 end -index_value(ci::ConstraintIndex) = ci.value """ VariableIndex @@ -30,7 +29,6 @@ To allow for deletion, indices need not be consecutive. struct VariableIndex value::Int64 end -index_value(vi::VariableIndex) = vi.value # The default hash is slow. It's important for the performance of dictionaries # of VariableIndices to define our own.