Skip to content

Commit

Permalink
[Utilities] remove keyword arguments from copy_to (#2272)
Browse files Browse the repository at this point in the history
  • Loading branch information
odow authored Sep 19, 2023
1 parent f0096e5 commit 763145d
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions src/Utilities/cachingoptimizer.jl
Original file line number Diff line number Diff line change
Expand Up @@ -270,11 +270,11 @@ end
function final_touch(m::CachingOptimizer, index_map)
return final_touch(m.model_cache, index_map)
end
function MOI.copy_to(m::CachingOptimizer, src::MOI.ModelLike; kws...)
function MOI.copy_to(m::CachingOptimizer, src::MOI.ModelLike)
if m.state == ATTACHED_OPTIMIZER
reset_optimizer(m)
end
return MOI.copy_to(m.model_cache, src; kws...)
return MOI.copy_to(m.model_cache, src)
end

function MOI.supports_incremental_interface(model::CachingOptimizer)
Expand Down
4 changes: 2 additions & 2 deletions src/Utilities/mockoptimizer.jl
Original file line number Diff line number Diff line change
Expand Up @@ -943,8 +943,8 @@ function MOI.supports_add_constrained_variables(
return MOI.supports_add_constrained_variables(mock.inner_model, MOI.Reals)
end

function MOI.copy_to(dest::MockOptimizer, src::MOI.ModelLike; kwargs...)
return default_copy_to(dest, src; kwargs...)
function MOI.copy_to(dest::MockOptimizer, src::MOI.ModelLike)
return default_copy_to(dest, src)
end

function MOI.supports_incremental_interface(mock::MockOptimizer)
Expand Down
4 changes: 2 additions & 2 deletions src/Utilities/universalfallback.jl
Original file line number Diff line number Diff line change
Expand Up @@ -123,8 +123,8 @@ function pass_nonvariable_constraints(
)
end

function MOI.copy_to(dest::UniversalFallback, src::MOI.ModelLike; kwargs...)
return MOIU.default_copy_to(dest, src; kwargs...)
function MOI.copy_to(dest::UniversalFallback, src::MOI.ModelLike)
return default_copy_to(dest, src)
end

function MOI.supports_incremental_interface(uf::UniversalFallback)
Expand Down

0 comments on commit 763145d

Please sign in to comment.