mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-11-21 03:54:57 +01:00
refactor(sonar): mark unused parameters (cpp:S1172)
Unused names are commented out; parameters used only on some platforms are marked [[maybe_unused]]. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -1483,7 +1483,7 @@ double TMoverParameters::ComputeMovement(double dt, double dt1, const TTrackShap
|
||||
// Oblicza przemieszczenie taboru - uproszczona wersja
|
||||
// *************************************************************************************************
|
||||
|
||||
double TMoverParameters::FastComputeMovement(double dt, const TTrackShape &Shape, TTrackParam &Track, TLocation const &NewLoc, TRotation const &NewRot)
|
||||
double TMoverParameters::FastComputeMovement(double dt, const TTrackShape & /*Shape*/, TTrackParam & /*Track*/, TLocation const &NewLoc, TRotation const &NewRot)
|
||||
{
|
||||
int b;
|
||||
// T_MoverParameters::FastComputeMovement(dt, Shape, Track, NewLoc, NewRot);
|
||||
@@ -1731,7 +1731,7 @@ void TMoverParameters::MainsCheck(double const Deltatime)
|
||||
}
|
||||
}
|
||||
|
||||
void TMoverParameters::LowVoltagePowerCheck(double const Deltatime)
|
||||
void TMoverParameters::LowVoltagePowerCheck(double const /*Deltatime*/)
|
||||
{
|
||||
|
||||
auto const lowvoltagepower{Power24vIsAvailable || Power110vIsAvailable};
|
||||
@@ -1756,7 +1756,7 @@ void TMoverParameters::LowVoltagePowerCheck(double const Deltatime)
|
||||
}
|
||||
}
|
||||
|
||||
void TMoverParameters::PowerCouplersCheck(double const Deltatime, coupling const Coupling)
|
||||
void TMoverParameters::PowerCouplersCheck(double const /*Deltatime*/, coupling const Coupling)
|
||||
{
|
||||
if (Coupling != coupling::highvoltage && Coupling != coupling::power110v && Coupling != coupling::power24v)
|
||||
{
|
||||
@@ -2086,7 +2086,7 @@ void TMoverParameters::ConverterCheck(double const Timestep)
|
||||
};
|
||||
|
||||
// heating system status check
|
||||
void TMoverParameters::HeatingCheck(double const Timestep)
|
||||
void TMoverParameters::HeatingCheck(double const /*Timestep*/)
|
||||
{
|
||||
|
||||
// update heating devices
|
||||
@@ -2172,7 +2172,7 @@ void TMoverParameters::HeatingCheck(double const Timestep)
|
||||
}
|
||||
|
||||
// water pump status check
|
||||
void TMoverParameters::WaterPumpCheck(double const Timestep)
|
||||
void TMoverParameters::WaterPumpCheck(double const /*Timestep*/)
|
||||
{
|
||||
// NOTE: breaker override with start type is sm42 specific hack, replace with ability to define the presence of the breaker
|
||||
WaterPump.is_active = true == (Power24vIsAvailable || Power110vIsAvailable) && true == WaterPump.breaker && false == WaterPump.is_disabled &&
|
||||
@@ -2180,7 +2180,7 @@ void TMoverParameters::WaterPumpCheck(double const Timestep)
|
||||
}
|
||||
|
||||
// water heater status check
|
||||
void TMoverParameters::WaterHeaterCheck(double const Timestep)
|
||||
void TMoverParameters::WaterHeaterCheck(double const /*Timestep*/)
|
||||
{
|
||||
|
||||
WaterHeater.is_active = false == WaterHeater.is_damaged && true == (Power24vIsAvailable || Power110vIsAvailable) && true == WaterHeater.is_enabled && true == WaterHeater.breaker &&
|
||||
@@ -2195,7 +2195,7 @@ void TMoverParameters::WaterHeaterCheck(double const Timestep)
|
||||
}
|
||||
|
||||
// fuel pump status update
|
||||
void TMoverParameters::FuelPumpCheck(double const Timestep)
|
||||
void TMoverParameters::FuelPumpCheck(double const /*Timestep*/)
|
||||
{
|
||||
|
||||
FuelPump.is_active = true == (Power24vIsAvailable || Power110vIsAvailable) && false == FuelPump.is_disabled &&
|
||||
@@ -2294,7 +2294,7 @@ void TMoverParameters::MotorBlowersCheck(double const Timestep)
|
||||
}
|
||||
}
|
||||
|
||||
void TMoverParameters::PantographsCheck(double const Timestep)
|
||||
void TMoverParameters::PantographsCheck(double const /*Timestep*/)
|
||||
{
|
||||
|
||||
{
|
||||
@@ -2332,7 +2332,7 @@ void TMoverParameters::PantographsCheck(double const Timestep)
|
||||
}
|
||||
}
|
||||
|
||||
void TMoverParameters::LightsCheck(double const Timestep)
|
||||
void TMoverParameters::LightsCheck(double const /*Timestep*/)
|
||||
{
|
||||
|
||||
auto &light{CompartmentLights};
|
||||
@@ -4848,7 +4848,7 @@ void TMoverParameters::UpdateScndPipePressure(double dt)
|
||||
// yB: 20190906
|
||||
// Aktualizacja ciśnienia w hamulcu sprezynowym
|
||||
// *************************************************************************************************
|
||||
void TMoverParameters::UpdateSpringBrake(double dt)
|
||||
void TMoverParameters::UpdateSpringBrake(double /*dt*/)
|
||||
{
|
||||
double BP = SpringBrake.PNBrakeConnection ? BrakePress : 0;
|
||||
double MSP = SpringBrake.ShuttOff ? 0 : SpringBrake.MaxSetPressure;
|
||||
@@ -5200,7 +5200,7 @@ double TMoverParameters::BrakeForceP(double press, double velocity)
|
||||
// Q: 20160713
|
||||
// oblicza siłę na styku koła i szyny
|
||||
// *************************************************************************************************
|
||||
double TMoverParameters::BrakeForce(TTrackParam const &Track)
|
||||
double TMoverParameters::BrakeForce(TTrackParam const & /*Track*/)
|
||||
{
|
||||
|
||||
double K{0};
|
||||
@@ -11776,7 +11776,7 @@ TEngineType TMoverParameters::LoadFIZ_EngineDecode(std::string const &Engine)
|
||||
// Q: 20160717
|
||||
// *************************************************************************************************
|
||||
|
||||
bool TMoverParameters::CheckLocomotiveParameters(bool ReadyFlag, int Dir)
|
||||
bool TMoverParameters::CheckLocomotiveParameters(bool ReadyFlag, int /*Dir*/)
|
||||
{
|
||||
WriteLog("check locomotive parameters...");
|
||||
int b;
|
||||
|
||||
@@ -294,7 +294,7 @@ double TNESt3::GetPF( double const PP, double const dt, double const Vel ) // pr
|
||||
return dV - dV1;
|
||||
}
|
||||
|
||||
void TNESt3::EStParams( double const i_crc ) // parametry charakterystyczne dla ESt
|
||||
void TNESt3::EStParams( double const /*i_crc*/ ) // parametry charakterystyczne dla ESt
|
||||
{
|
||||
}
|
||||
|
||||
@@ -331,7 +331,7 @@ double TNESt3::GetCRP()
|
||||
// return Miedzypoj.P;
|
||||
}
|
||||
|
||||
void TNESt3::CheckState(double const BCP, double &dV1) // glowny przyrzad rozrzadczy
|
||||
void TNESt3::CheckState(double const BCP, double & /*dV1*/) // glowny przyrzad rozrzadczy
|
||||
{
|
||||
double const BVP{ BrakeRes->P() }; //-> tu ma byc komora rozprezna
|
||||
double const VVP{ ValveRes->P() };
|
||||
@@ -384,7 +384,7 @@ void TNESt3::CheckReleaser(double const dt) // odluzniacz
|
||||
}
|
||||
}
|
||||
|
||||
double TNESt3::CVs(double const BP) // napelniacz sterujacego
|
||||
double TNESt3::CVs(double const /*BP*/) // napelniacz sterujacego
|
||||
{
|
||||
double const CVP{ CntrlRes->P() };
|
||||
double const MPP{ Miedzypoj->P() };
|
||||
|
||||
@@ -854,7 +854,7 @@ void TESt::CheckReleaser(double const dt)
|
||||
/// </summary>
|
||||
/// <param name="BCP">Brake cylinder (or impulse-chamber) pressure.</param>
|
||||
/// <param name="dV1">In/out brake-pipe flow correction (unused in this base impl).</param>
|
||||
void TESt::CheckState(double const BCP, double &dV1)
|
||||
void TESt::CheckState(double const BCP, double & /*dV1*/)
|
||||
{
|
||||
|
||||
double const VVP{ValveRes->P()};
|
||||
@@ -1086,7 +1086,7 @@ void TESt::Init(double const PP, double const HPP, double const LPP, double cons
|
||||
/// derived variants and currently a no-op.
|
||||
/// </summary>
|
||||
/// <param name="i_crc">Characteristic value.</param>
|
||||
void TESt::EStParams(double const i_crc) {}
|
||||
void TESt::EStParams(double const /*i_crc*/) {}
|
||||
|
||||
/// <summary>Returns the control reservoir (ZS) pressure.</summary>
|
||||
double TESt::GetCRP()
|
||||
@@ -2502,7 +2502,7 @@ void TKE::CheckReleaser(double const dt)
|
||||
/// </summary>
|
||||
/// <param name="BCP">Cylinder (or impulse-chamber) pressure.</param>
|
||||
/// <param name="dV1">In/out brake-pipe flow correction (unused here).</param>
|
||||
void TKE::CheckState(double const BCP, double &dV1)
|
||||
void TKE::CheckState(double const BCP, double & /*dV1*/)
|
||||
{
|
||||
double VVP;
|
||||
double BVP;
|
||||
@@ -2604,7 +2604,7 @@ double TKE::CVs(double const BP)
|
||||
/// </summary>
|
||||
/// <param name="BCP">Impulse-chamber pressure.</param>
|
||||
/// <returns>Opening coefficient.</returns>
|
||||
double TKE::BVs(double const BCP)
|
||||
double TKE::BVs(double const /*BCP*/)
|
||||
{
|
||||
double VVP;
|
||||
double BVP;
|
||||
|
||||
Reference in New Issue
Block a user