From 763145da032b39c56cd228b428b76309190c5a58 Mon Sep 17 00:00:00 2001 From: Oscar Dowson Date: Wed, 20 Sep 2023 09:14:19 +1200 Subject: [PATCH] [Utilities] remove keyword arguments from copy_to (#2272) --- src/Utilities/cachingoptimizer.jl | 4 ++-- src/Utilities/mockoptimizer.jl | 4 ++-- src/Utilities/universalfallback.jl | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/Utilities/cachingoptimizer.jl b/src/Utilities/cachingoptimizer.jl index 14c5011743..ce09aaeb55 100644 --- a/src/Utilities/cachingoptimizer.jl +++ b/src/Utilities/cachingoptimizer.jl @@ -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) diff --git a/src/Utilities/mockoptimizer.jl b/src/Utilities/mockoptimizer.jl index e7beb86f42..bff094329e 100644 --- a/src/Utilities/mockoptimizer.jl +++ b/src/Utilities/mockoptimizer.jl @@ -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) diff --git a/src/Utilities/universalfallback.jl b/src/Utilities/universalfallback.jl index 23cdad1a81..db1e624867 100644 --- a/src/Utilities/universalfallback.jl +++ b/src/Utilities/universalfallback.jl @@ -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)