Skip to content

Commit 02bebf2

Browse files
Merge pull request #721 from SciML/reminst
Delete duplicate ReInitCache
2 parents 8568743 + a975ff1 commit 02bebf2

File tree

2 files changed

+2
-8
lines changed

2 files changed

+2
-8
lines changed

src/Optimization.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ using Logging, ProgressLogging, ConsoleProgressMonitor, TerminalLoggers, Logging
1515
using ArrayInterface, Base.Iterators, SparseArrays, LinearAlgebra
1616
using Pkg
1717

18-
import OptimizationBase: instantiate_function
18+
import OptimizationBase: instantiate_function, OptimizationCache, ReInitCache
1919
import SciMLBase: OptimizationProblem,
2020
OptimizationFunction, ObjSense,
2121
MaxSense, MinSense, OptimizationStats
@@ -24,6 +24,6 @@ export ObjSense, MaxSense, MinSense
2424
include("utils.jl")
2525
include("state.jl")
2626

27-
export solve, OptimizationCache
27+
export solve
2828

2929
end # module

src/utils.jl

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -66,9 +66,3 @@ function check_pkg_version(pkg::String, ver::String;
6666
pkg_info[pkg].version >= VersionNumber(ver) :
6767
pkg_info[pkg].version > VersionNumber(ver)
6868
end
69-
70-
# Wrapper for fields that may change in `reinit!(cache)` of a cache.
71-
mutable struct ReInitCache{uType, P}
72-
u0::uType
73-
p::P
74-
end

0 commit comments

Comments
 (0)