Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions src/ModelingToolkit.jl
Original file line number Diff line number Diff line change
Expand Up @@ -138,9 +138,6 @@ $(TYPEDEF)
TODO
"""
abstract type AbstractSystem end
# Solely so that `ODESystem` can be deprecated and still act as a valid type.
# See `deprecations.jl`.
abstract type IntermediateDeprecationSystem <: AbstractSystem end

function independent_variable end

Expand Down
8 changes: 1 addition & 7 deletions src/deprecations.jl
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,7 @@ macro mtkbuild(exprs...)
end |> esc
end

const ODESystem = IntermediateDeprecationSystem

function IntermediateDeprecationSystem(args...; kwargs...)
Base.depwarn("`ODESystem(args...; kwargs...)` is deprecated. Use `System(args...; kwargs...) instead`.", :ODESystem)

return System(args...; kwargs...)
end
Base.@deprecate_binding ODESystem System

for T in [:NonlinearSystem, :DiscreteSystem, :ImplicitDiscreteSystem]
@eval @deprecate $T(args...; kwargs...) System(args...; kwargs...)
Expand Down
2 changes: 1 addition & 1 deletion src/systems/system.jl
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ structure.

$(TYPEDFIELDS)
"""
struct System <: IntermediateDeprecationSystem
struct System <: AbstractSystem
"""
$INTERNAL_FIELD_WARNING
A unique integer tag for the system.
Expand Down
Loading