Skip to content

Commit 92ca5cc

Browse files
committed
Remove SubmittedIndex
1 parent 23705b5 commit 92ca5cc

File tree

2 files changed

+2
-13
lines changed

2 files changed

+2
-13
lines changed

src/attributes.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -377,7 +377,7 @@ end
377377

378378
"""
379379
submit(optimizer::AbstractOptimizer, sub::AbstractSubmittable,
380-
value)::Union{Nothing, SubmittedIndex{typeof(sub)}}
380+
value)::Nothing
381381
382382
Submit `value` to the submittable `sub` of the optimizer `optimizer`.
383383

src/indextypes.jl

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -35,21 +35,10 @@ end
3535
# https://github.com/JuliaLang/julia/issues/10208
3636
Base.hash(v::VariableIndex, h::UInt) = hash(v.value, h)
3737

38-
"""
39-
SubmittedIndex{SubmitType}
40-
41-
A type-safe wrapper for `Int64` for use in referencing elements submitted for
42-
submittable of type `SubmitType`.
43-
"""
44-
struct SubmittedIndex{SubmitType}
45-
attr::SubmitType
46-
value::Int64
47-
end
48-
4938
# No need to define isequal because the default matches our implementation of
5039
# hash.
5140

52-
const Index = Union{ConstraintIndex, VariableIndex, SubmittedIndex}
41+
const Index = Union{ConstraintIndex,VariableIndex}
5342

5443
"""
5544
struct InvalidIndex{IndexType<:Index} <: Exception

0 commit comments

Comments
 (0)