Skip to content

Commit

Permalink
Delete duplicate ReInitCache
Browse files Browse the repository at this point in the history
  • Loading branch information
Vaibhavdixit02 committed Mar 22, 2024
1 parent 8568743 commit a975ff1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
4 changes: 2 additions & 2 deletions src/Optimization.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -24,6 +24,6 @@ export ObjSense, MaxSense, MinSense
include("utils.jl")
include("state.jl")

export solve, OptimizationCache
export solve

end # module
6 changes: 0 additions & 6 deletions src/utils.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit a975ff1

Please sign in to comment.