Skip to content

Commit 5c3468c

Browse files
refactor: remove Substitutions
1 parent e2eb777 commit 5c3468c

File tree

3 files changed

+0
-9
lines changed

3 files changed

+0
-9
lines changed

src/structural_transformation/StructuralTransformations.jl

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ using ModelingToolkit: System, AbstractSystem, var_from_nested_derivative, Diffe
2323
ExtraVariablesSystemException,
2424
vars!,
2525
IncrementalCycleTracker, add_edge_checked!, topological_sort,
26-
invalidate_cache!, Substitutions, get_or_construct_tearing_state,
2726
filter_kwargs, lower_varname_with_unit,
2827
lower_shift_varname_with_unit, setio, SparseMatrixCLIL,
2928
get_fullvars, has_equations, observed,

src/structural_transformation/symbolics_tearing.jl

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -734,7 +734,6 @@ function update_simplified_system!(
734734

735735
@set! sys.eqs = neweqs
736736
@set! sys.observed = obs
737-
# @set! sys.substitutions = Substitutions(subeqs, deps)
738737

739738
# Only makes sense for time-dependent
740739
if ModelingToolkit.has_schedule(sys)

src/systems/abstractsystem.jl

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -197,13 +197,6 @@ end
197197

198198
const MTKPARAMETERS_ARG = Sym{Vector{Vector}}(:___mtkparameters___)
199199

200-
mutable struct Substitutions
201-
subs::Vector{Equation}
202-
deps::Vector{Vector{Int}}
203-
subed_eqs::Union{Nothing, Vector{Equation}}
204-
end
205-
Substitutions(subs, deps) = Substitutions(subs, deps, nothing)
206-
207200
Base.nameof(sys::AbstractSystem) = getfield(sys, :name)
208201
description(sys::AbstractSystem) = has_description(sys) ? get_description(sys) : ""
209202

0 commit comments

Comments
 (0)