From f440d8465ae9b4b7f4bf567e2799ae702c70d8da Mon Sep 17 00:00:00 2001 From: "Joshua E. Hansel" Date: Mon, 27 Jan 2025 17:46:26 -0600 Subject: [PATCH] Deleted deprecated _closures member Refs #29594 --- .../thermal_hydraulics/include/components/FlowChannelBase.h | 6 ------ .../include/components/HeatTransferBase.h | 1 - modules/thermal_hydraulics/src/components/FlowChannelBase.C | 3 --- .../thermal_hydraulics/src/components/HeatTransferBase.C | 1 - 4 files changed, 11 deletions(-) diff --git a/modules/thermal_hydraulics/include/components/FlowChannelBase.h b/modules/thermal_hydraulics/include/components/FlowChannelBase.h index 3a98a2655821..91703339219a 100644 --- a/modules/thermal_hydraulics/include/components/FlowChannelBase.h +++ b/modules/thermal_hydraulics/include/components/FlowChannelBase.h @@ -182,11 +182,6 @@ class FlowChannelBase : public Component1D, public GravityInterface * * @return The closures object(s) */ - std::shared_ptr getClosures() const - { - mooseDeprecated("getClosures() is deprecated. Use getClosuresObjects() instead."); - return _closures; - } std::vector> getClosuresObjects() const { return _closures_objects; @@ -221,7 +216,6 @@ class FlowChannelBase : public Component1D, public GravityInterface FunctionName _area_function; /// Closures object(s) - std::shared_ptr _closures; std::vector> _closures_objects; const bool & _pipe_pars_transferred; diff --git a/modules/thermal_hydraulics/include/components/HeatTransferBase.h b/modules/thermal_hydraulics/include/components/HeatTransferBase.h index f64b4d39e284..e9a89cf729f7 100644 --- a/modules/thermal_hydraulics/include/components/HeatTransferBase.h +++ b/modules/thermal_hydraulics/include/components/HeatTransferBase.h @@ -94,7 +94,6 @@ class HeatTransferBase : public ConnectorBase const bool _P_hf_provided; /// Used closures object(s) - std::shared_ptr _closures; std::vector> _closures_objects; /// heated perimeter name diff --git a/modules/thermal_hydraulics/src/components/FlowChannelBase.C b/modules/thermal_hydraulics/src/components/FlowChannelBase.C index b41da13470f8..66dbbebd7997 100644 --- a/modules/thermal_hydraulics/src/components/FlowChannelBase.C +++ b/modules/thermal_hydraulics/src/components/FlowChannelBase.C @@ -171,9 +171,6 @@ FlowChannelBase::init() const auto & closures_names = getParam>("closures"); for (const auto & closures_name : closures_names) _closures_objects.push_back(getTHMProblem().getClosures(closures_name)); - // _closures should be removed after transition: - if (_closures_objects.size() >= 1) - _closures = _closures_objects[0]; } } diff --git a/modules/thermal_hydraulics/src/components/HeatTransferBase.C b/modules/thermal_hydraulics/src/components/HeatTransferBase.C index 2ffa2d81c789..80e7b78fc6b5 100644 --- a/modules/thermal_hydraulics/src/components/HeatTransferBase.C +++ b/modules/thermal_hydraulics/src/components/HeatTransferBase.C @@ -56,7 +56,6 @@ HeatTransferBase::init() _model_type = flow_channel.getFlowModelID(); _fp_name = flow_channel.getFluidPropertiesName(); _A_fn_name = flow_channel.getAreaFunctionName(); - _closures = flow_channel.getClosures(); _closures_objects = flow_channel.getClosuresObjects(); } }