From 579960cf297963694674f5a74578b7f25fa62c6e Mon Sep 17 00:00:00 2001 From: odow Date: Tue, 19 Sep 2023 17:02:17 +1200 Subject: [PATCH] [Utilities] remove keyword arguments from copy_to --- 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 c57df71d7b..4d67300308 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)