From a975ff1d81d1661a14c11cd7d95c07b009c38894 Mon Sep 17 00:00:00 2001 From: Vaibhav Dixit Date: Thu, 21 Mar 2024 20:20:22 -0400 Subject: [PATCH] Delete duplicate ReInitCache --- src/Optimization.jl | 4 ++-- src/utils.jl | 6 ------ 2 files changed, 2 insertions(+), 8 deletions(-) diff --git a/src/Optimization.jl b/src/Optimization.jl index b54d2fa03..a5e83efe7 100644 --- a/src/Optimization.jl +++ b/src/Optimization.jl @@ -15,7 +15,7 @@ using Logging, ProgressLogging, ConsoleProgressMonitor, TerminalLoggers, Logging using ArrayInterface, Base.Iterators, SparseArrays, LinearAlgebra using Pkg -import OptimizationBase: instantiate_function +import OptimizationBase: instantiate_function, OptimizationCache, ReInitCache import SciMLBase: OptimizationProblem, OptimizationFunction, ObjSense, MaxSense, MinSense, OptimizationStats @@ -24,6 +24,6 @@ export ObjSense, MaxSense, MinSense include("utils.jl") include("state.jl") -export solve, OptimizationCache +export solve end # module diff --git a/src/utils.jl b/src/utils.jl index 2e5e3b2ad..dec99be7b 100644 --- a/src/utils.jl +++ b/src/utils.jl @@ -66,9 +66,3 @@ function check_pkg_version(pkg::String, ver::String; pkg_info[pkg].version >= VersionNumber(ver) : pkg_info[pkg].version > VersionNumber(ver) end - -# Wrapper for fields that may change in `reinit!(cache)` of a cache. -mutable struct ReInitCache{uType, P} - u0::uType - p::P -end