@@ -58,13 +58,13 @@ find_first_period(comp_def::AbstractComponentDef) = @or(first_period(comp_def),
58
58
find_last_period (comp_def:: AbstractComponentDef ) = @or (last_period (comp_def), last_period (get_root (comp_def)))
59
59
60
60
"""
61
- delete!(md::ModelDef, comp_name::Symbol; delete_unbound_comp_params ::Bool=false)
61
+ delete!(md::ModelDef, comp_name::Symbol; deep ::Bool=false)
62
62
63
63
Delete a `component` by name from `md`.
64
- If `delete_unbound_comp_params =true` then any external model parameters connected only to
64
+ If `deep =true` then any external model parameters connected only to
65
65
this component will also be deleted.
66
66
"""
67
- function Base. delete! (md:: ModelDef , comp_name:: Symbol ; delete_unbound_comp_params :: Bool = false )
67
+ function Base. delete! (md:: ModelDef , comp_name:: Symbol ; deep :: Bool = false )
68
68
if ! has_comp (md, comp_name)
69
69
error (" Cannot delete '$comp_name ': component does not exist." )
70
70
end
@@ -81,7 +81,7 @@ function Base.delete!(md::ModelDef, comp_name::Symbol; delete_unbound_comp_param
81
81
82
82
# Remove external parameter connections
83
83
84
- if delete_unbound_comp_params # Find and delete external_params that were connected only to the deleted component if specified
84
+ if deep # Find and delete external_params that were connected only to the deleted component if specified
85
85
# Get all external parameters this component is connected to
86
86
comp_ext_params = map (x -> x. external_param, filter (x -> x. comp_path == comp_path, md. external_param_conns))
87
87
0 commit comments