Skip to content

Commit 9617bbb

Browse files
authored
Remove keyword arguments to constructor (#25)
1 parent 0c35cb5 commit 9617bbb

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/MOI_wrapper.jl

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,13 +27,10 @@ mutable struct Optimizer <: MOI.AbstractOptimizer
2727

2828
silent::Bool
2929
options::Dict{Symbol,Any}
30-
function Optimizer(; kwargs...)
30+
function Optimizer()
3131
optimizer = new(C_NULL, C_NULL, 0.0, 1, Cdouble[], Int[], Tuple{Int, Int, Int}[], Int[], C_NULL, 0, Int[],
3232
Int[], Cdouble[], true, true, Cdouble[], true,
3333
false, false, Dict{Symbol, Any}())
34-
for (key, value) in kwargs
35-
MOI.set(optimizer, MOI.RawOptimizerAttribute(key), value)
36-
end
3734
finalizer(_free, optimizer)
3835
return optimizer
3936
end

0 commit comments

Comments
 (0)