Skip to content

Commit

Permalink
Merge pull request #638 from SciML/ap/reduce_deps
Browse files Browse the repository at this point in the history
Remove Unused Dependencies
  • Loading branch information
ChrisRackauckas authored Feb 26, 2024
2 parents c988a92 + 533eef6 commit 14c0b32
Show file tree
Hide file tree
Showing 24 changed files with 0 additions and 99 deletions.
4 changes: 0 additions & 4 deletions Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ ConstructionBase = "187b0558-2788-49d3-abe0-74a17ed4e7c9"
Distributed = "8ba89e20-285c-5b6f-9357-94700520ee1b"
DocStringExtensions = "ffbed154-4ef7-542d-bbb7-c09d3a79fcae"
EnumX = "4e289a0a-7415-4d19-859d-a7e5c4648b56"
FillArrays = "1a297f60-69ca-5386-bcde-b61e274b549b"
FunctionWrappersWrappers = "77dc65aa-8811-40c2-897b-53d922fa7daf"
IteratorInterfaceExtensions = "82899510-4779-5014-852e-03e436cf321d"
LinearAlgebra = "37e2e46d-f89d-539d-b4ee-838fcccc9c8e"
Expand All @@ -29,7 +28,6 @@ StaticArraysCore = "1e83bf80-4336-4d27-bf5d-d5a4f845583c"
Statistics = "10745b16-79ce-11e8-11f9-7d13ad32a3b2"
SymbolicIndexingInterface = "2efcf032-c050-4f8e-a9bb-153293bab1f5"
Tables = "bd369af6-aec1-5ad0-b16a-f7cc5008161c"
TruncatedStacktraces = "781d530d-4396-4725-bb49-402e4bee1e77"

[weakdeps]
ChainRules = "082447d4-558c-5d27-93f4-14fc19e9eca2"
Expand Down Expand Up @@ -61,7 +59,6 @@ DataFrames = "1.6"
Distributed = "1.10"
DocStringExtensions = "0.9"
EnumX = "1"
FillArrays = "1.9"
FunctionWrappersWrappers = "0.1.3"
IteratorInterfaceExtensions = "^1"
LinearAlgebra = "1.10"
Expand All @@ -86,7 +83,6 @@ StaticArraysCore = "1.4"
Statistics = "1.10"
SymbolicIndexingInterface = "0.3.3"
Tables = "1.11"
TruncatedStacktraces = "1.4"
Zygote = "0.6.67"
julia = "1.10"

Expand Down
2 changes: 0 additions & 2 deletions src/SciMLBase.jl
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,7 @@ import CommonSolve: solve, init, step!, solve!
import FunctionWrappersWrappers
import RuntimeGeneratedFunctions
import EnumX
import TruncatedStacktraces
import ADTypes: AbstractADType
import FillArrays

using Reexport
using SciMLOperators
Expand Down
6 changes: 0 additions & 6 deletions src/callbacks.jl
Original file line number Diff line number Diff line change
Expand Up @@ -155,8 +155,6 @@ function ContinuousCallback(condition, affect!;
dtrelax, abstol, reltol, repeat_nudge)
end

TruncatedStacktraces.@truncate_stacktrace ContinuousCallback

"""
```julia
VectorContinuousCallback(condition, affect!, affect_neg!, len;
Expand Down Expand Up @@ -263,8 +261,6 @@ function VectorContinuousCallback(condition, affect!, len;
dtrelax, abstol, reltol, repeat_nudge)
end

TruncatedStacktraces.@truncate_stacktrace VectorContinuousCallback

"""
```julia
DiscreteCallback(condition, affect!;
Expand Down Expand Up @@ -317,8 +313,6 @@ function DiscreteCallback(condition, affect!;
DiscreteCallback(condition, affect!, initialize, finalize, save_positions)
end

TruncatedStacktraces.@truncate_stacktrace DiscreteCallback

"""
$(TYPEDEF)
Expand Down
2 changes: 0 additions & 2 deletions src/problems/analytical_problems.jl
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,6 @@ struct AnalyticalProblem{uType, tType, isinplace, P, F, K} <:
end
end

TruncatedStacktraces.@truncate_stacktrace AnalyticalProblem 3 1 2

function AnalyticalProblem(f, u0, tspan, p = NullParameters(); kwargs...)
iip = isinplace(f, 4)
AnalyticalProblem{iip}(f, u0, tspan, p; kwargs...)
Expand Down
10 changes: 0 additions & 10 deletions src/problems/basic_problems.jl
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,6 @@ function LinearProblem(A, b, args...; kwargs...)
end
end

TruncatedStacktraces.@truncate_stacktrace LinearProblem 1

"""
$(TYPEDEF)
"""
Expand Down Expand Up @@ -169,7 +167,6 @@ struct IntervalNonlinearProblem{isinplace, tType, P, F, K, PT} <:
IntervalNonlinearProblem{iip}(IntervalNonlinearFunction{iip}(f), tspan, p)
end
end
TruncatedStacktraces.@truncate_stacktrace IntervalNonlinearProblem 1 2

"""
$(SIGNATURES)
Expand Down Expand Up @@ -269,7 +266,6 @@ struct NonlinearProblem{uType, isinplace, P, F, K, PT} <:
end
end

TruncatedStacktraces.@truncate_stacktrace NonlinearProblem 2 1
"""
$(SIGNATURES)
Expand Down Expand Up @@ -380,8 +376,6 @@ struct NonlinearLeastSquaresProblem{uType, isinplace, P, F, K} <:
end
end

TruncatedStacktraces.@truncate_stacktrace NonlinearLeastSquaresProblem 2 1

"""
$(SIGNATURES)
Expand Down Expand Up @@ -459,8 +453,6 @@ struct IntegralProblem{isinplace, P, F, T, K} <: AbstractIntegralProblem{isinpla
end
end

TruncatedStacktraces.@truncate_stacktrace IntegralProblem 1 4

function IntegralProblem(f::AbstractIntegralFunction,
domain,
p = NullParameters();
Expand Down Expand Up @@ -568,5 +560,3 @@ struct SampledIntegralProblem{Y, X, K} <: AbstractIntegralProblem{false}
new{typeof(y), typeof(x), typeof(kwargs)}(y, x, dim, kwargs)
end
end

TruncatedStacktraces.@truncate_stacktrace SampledIntegralProblem
2 changes: 0 additions & 2 deletions src/problems/bvp_problems.jl
Original file line number Diff line number Diff line change
Expand Up @@ -135,8 +135,6 @@ struct BVProblem{uType, tType, isinplace, P, F, PT, K} <:
end
end

TruncatedStacktraces.@truncate_stacktrace BVProblem 3 1 2

function BVProblem(f, bc, u0, tspan, p = NullParameters(); kwargs...)
iip = isinplace(f, 4)
return BVProblem{iip}(BVPFunction{iip}(f, bc), u0, tspan, p; kwargs...)
Expand Down
2 changes: 0 additions & 2 deletions src/problems/dae_problems.jl
Original file line number Diff line number Diff line change
Expand Up @@ -105,8 +105,6 @@ struct DAEProblem{uType, duType, tType, isinplace, P, F, K, D} <:
end
end

TruncatedStacktraces.@truncate_stacktrace DAEProblem 4 1 3

function DAEProblem(f::AbstractDAEFunction, du0, u0, tspan, p = NullParameters(); kwargs...)
DAEProblem{isinplace(f)}(f, du0, u0, tspan, p; kwargs...)
end
Expand Down
2 changes: 0 additions & 2 deletions src/problems/dde_problems.jl
Original file line number Diff line number Diff line change
Expand Up @@ -253,8 +253,6 @@ struct DDEProblem{uType, tType, lType, lType2, isinplace, P, F, H, K, PT} <:
end
end

TruncatedStacktraces.@truncate_stacktrace DDEProblem 5 1 2

DDEProblem(f, args...; kwargs...) = DDEProblem(DDEFunction(f), args...; kwargs...)

function DDEProblem(f::AbstractDDEFunction, args...; kwargs...)
Expand Down
2 changes: 0 additions & 2 deletions src/problems/discrete_problems.jl
Original file line number Diff line number Diff line change
Expand Up @@ -122,8 +122,6 @@ struct DiscreteProblem{uType, tType, isinplace, P, F, K} <:
end
end

TruncatedStacktraces.@truncate_stacktrace DiscreteProblem 3 1 2

"""
DiscreteProblem{isinplace}(f,u0,tspan,p=NullParameters(),callback=nothing)
Expand Down
2 changes: 0 additions & 2 deletions src/problems/implicit_discrete_problems.jl
Original file line number Diff line number Diff line change
Expand Up @@ -104,8 +104,6 @@ struct ImplicitDiscreteProblem{uType, tType, isinplace, P, F, K} <:
end
end

TruncatedStacktraces.@truncate_stacktrace ImplicitDiscreteProblem 3 1 2

"""
ImplicitDiscreteProblem{isinplace}(f,u0,tspan,p=NullParameters(),callback=nothing)
Expand Down
2 changes: 0 additions & 2 deletions src/problems/noise_problems.jl
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@ struct NoiseProblem{N <: AbstractNoiseProcess, T, K} <: AbstractNoiseProblem
kwargs::K
end

TruncatedStacktraces.@truncate_stacktrace NoiseProblem 1

@add_kwonly function NoiseProblem(noise, tspan; seed = UInt64(0), kwargs...)
_tspan = promote_tspan(tspan)
NoiseProblem{typeof(noise), typeof(_tspan), typeof(kwargs)}(noise, _tspan, seed, kwargs)
Expand Down
1 change: 0 additions & 1 deletion src/problems/ode_problems.jl
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,6 @@ mutable struct ODEProblem{uType, tType, isinplace, P, F, K, PT} <:
ODEProblem{iip}(ff, _u0, _tspan, p; kwargs...)
end
end
TruncatedStacktraces.@truncate_stacktrace ODEProblem 3 1 2

function Base.setproperty!(prob::ODEProblem, s::Symbol, v)
@warn "Mutation of ODEProblem detected. SciMLBase v2.0 has made ODEProblem temporarily mutable in order to allow for interfacing with EnzymeRules due to a current limitation in the rule system. This change is only intended to be temporary and ODEProblem will return to being a struct in a later non-breaking release. Do not rely on this behavior, use with caution."
Expand Down
2 changes: 0 additions & 2 deletions src/problems/optimization_problems.jl
Original file line number Diff line number Diff line change
Expand Up @@ -119,8 +119,6 @@ struct OptimizationProblem{iip, F, uType, P, LB, UB, I, LC, UC, S, K} <:
end
end

TruncatedStacktraces.@truncate_stacktrace OptimizationProblem 1 3

function OptimizationProblem(f::OptimizationFunction, args...; kwargs...)
OptimizationProblem{isinplace(f)}(f, args...; kwargs...)
end
Expand Down
2 changes: 0 additions & 2 deletions src/problems/rode_problems.jl
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,6 @@ mutable struct RODEProblem{uType, tType, isinplace, P, NP, F, K, ND} <:
end
end

TruncatedStacktraces.@truncate_stacktrace RODEProblem 3 1 2

function RODEProblem(f::RODEFunction, u0, tspan, p = NullParameters(); kwargs...)
RODEProblem{isinplace(f)}(f, u0, tspan, p; kwargs...)
end
Expand Down
2 changes: 0 additions & 2 deletions src/problems/sdde_problems.jl
Original file line number Diff line number Diff line change
Expand Up @@ -150,8 +150,6 @@ struct SDDEProblem{uType, tType, lType, lType2, isinplace, P, NP, F, G, H, K, ND
end
end

TruncatedStacktraces.@truncate_stacktrace SDDEProblem 5 1 2

function SDDEProblem(f, g, args...; kwargs...)
SDDEProblem(SDDEFunction(f, g), g, args...; kwargs...)
end
Expand Down
2 changes: 0 additions & 2 deletions src/problems/sde_problems.jl
Original file line number Diff line number Diff line change
Expand Up @@ -116,8 +116,6 @@ struct SDEProblem{uType, tType, isinplace, P, NP, F, G, K, ND} <:
end
end

TruncatedStacktraces.@truncate_stacktrace SDEProblem 3 1 2

function SDEProblem(f::AbstractSDEFunction, u0, tspan, p = NullParameters(); kwargs...)
SDEProblem{isinplace(f)}(f, u0, tspan, p; kwargs...)
end
Expand Down
2 changes: 0 additions & 2 deletions src/problems/steady_state_problems.jl
Original file line number Diff line number Diff line change
Expand Up @@ -99,8 +99,6 @@ struct SteadyStateProblem{uType, isinplace, P, F, K} <:
end
end

TruncatedStacktraces.@truncate_stacktrace SteadyStateProblem 2 1

"""
$(SIGNATURES)
Expand Down
Loading

0 comments on commit 14c0b32

Please sign in to comment.