Skip to content

Commit

Permalink
[Utilities] remove keyword arguments from copy_to
Browse files Browse the repository at this point in the history
  • Loading branch information
odow committed Sep 19, 2023
1 parent c5de829 commit 579960c
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)

Check warning on line 273 in src/Utilities/cachingoptimizer.jl

View check run for this annotation

Codecov / codecov/patch

src/Utilities/cachingoptimizer.jl#L273

Added line #L273 was not covered by tests
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)

Check warning on line 277 in src/Utilities/cachingoptimizer.jl

View check run for this annotation

Codecov / codecov/patch

src/Utilities/cachingoptimizer.jl#L277

Added line #L277 was not covered by tests
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 579960c

Please sign in to comment.