Skip to content

Commit

Permalink
remove method
Browse files Browse the repository at this point in the history
  • Loading branch information
jd-lara committed May 20, 2024
1 parent cf28a96 commit c660810
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions src/base.jl
Original file line number Diff line number Diff line change
Expand Up @@ -1949,8 +1949,6 @@ function check_for_services_on_addition(sys::System, component::RegulationDevice
return
end

check_topology(::System, ::Component) = nothing

function check_topology(sys::System, component::AreaInterchange)
throw_if_not_attached(get_from_area(component), sys)
throw_if_not_attached(get_to_area(component), sys)
Expand Down Expand Up @@ -2016,6 +2014,13 @@ handle_component_addition!(sys::System, component::Component; kwargs...) = nothi

handle_component_removal!(sys::System, component::Component) = nothing


function check_component_addition(sys::System, branch::AreaInterchange; kwargs...)
throw_if_not_attached(get_from_area(branch), sys)
throw_if_not_attached(get_to_area(branch), sys)
return
end

function check_component_addition(sys::System, branch::Branch; kwargs...)
arc = get_arc(branch)
throw_if_not_attached(get_from(arc), sys)
Expand Down Expand Up @@ -2135,8 +2140,11 @@ function _handle_branch_addition_common!(sys::System, component::Branch)
else
set_arc!(component, _arc)
end
return
end

_handle_branch_addition_common!(sys::System, component::AreaInterchange) = nothing

"""
Throws ArgumentError if the bus number is not stored in the system.
"""
Expand Down

0 comments on commit c660810

Please sign in to comment.