Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 90073db

Browse files
committedFeb 13, 2025
refactor: remove dead code
1 parent 9f71b2a commit 90073db

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed
 

Diff for: ‎src/systems/abstractsystem.jl

+1-7
Original file line numberDiff line numberDiff line change
@@ -713,14 +713,8 @@ function add_initialization_parameters(sys::AbstractSystem)
713713
end
714714
all_initialvars = collect(all_initialvars)
715715
initials = map(Initial(), all_initialvars)
716-
# existing_initials = filter(
717-
# x -> iscall(x) && (operation(x) isa Initial), parameters(sys))
718-
existing_initials = []
719-
@set! sys.ps = unique!([setdiff(get_ps(sys), existing_initials); initials])
716+
@set! sys.ps = unique!([get_ps(sys); initials])
720717
defs = copy(get_defaults(sys))
721-
for x in existing_initials
722-
delete!(defs, x)
723-
end
724718
for ivar in initials
725719
if symbolic_type(ivar) == ScalarSymbolic()
726720
defs[ivar] = zero_var(ivar)

0 commit comments

Comments
 (0)
Please sign in to comment.