Skip to content

Commit

Permalink
Clean up cpp file.
Browse files Browse the repository at this point in the history
  • Loading branch information
joseph-robertson committed Oct 4, 2024
1 parent 4293bd4 commit 96e3ca8
Showing 1 changed file with 4 additions and 16 deletions.
20 changes: 4 additions & 16 deletions src/model/ControllerOutdoorAir.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
#include <utilities/idd/IddEnums.hxx>
#include "../utilities/core/Compare.hpp"
#include "../utilities/core/Assert.hpp"
#include "../utilities/core/DeprecatedHelpers.hpp"

using openstudio::Handle;
using openstudio::OptionalHandle;
Expand Down Expand Up @@ -99,13 +100,7 @@ namespace model {
}

bool ControllerOutdoorAir_Impl::setElectronicEnthalpyLimitCurve(const Curve& curve) {
bool result(false);
if (curve) {
result = setPointer(OS_Controller_OutdoorAirFields::ElectronicEnthalpyLimitCurveName, curve.get().handle());
} else {
resetElectronicEnthalpyLimitCurve();
result = true;
}
bool result = setPointer(OS_Controller_OutdoorAirFields::ElectronicEnthalpyLimitCurveName, curve.handle());
return result;
}

Expand Down Expand Up @@ -296,15 +291,8 @@ namespace model {
}

bool ControllerOutdoorAir_Impl::setHumidistatControlZone(const ThermalZone& thermalZone) {
bool result(false);
if (thermalZone) {
result = setPointer(OS_Controller_OutdoorAirFields::HumidistatControlZoneName, thermalZone.get().handle());
result = result && setString(OS_Controller_OutdoorAirFields::HighHumidityControl, "Yes");
} else {
resetHumidistatControlZone();
result = true;
result = result && setString(OS_Controller_OutdoorAirFields::HighHumidityControl, "No");
}
bool result = setPointer(OS_Controller_OutdoorAirFields::HumidistatControlZoneName, thermalZone.handle());
result = result && setString(OS_Controller_OutdoorAirFields::HighHumidityControl, "Yes");
return result;
}

Expand Down

0 comments on commit 96e3ca8

Please sign in to comment.