From 807d6822a5f89dd98a79d28309ddc8f821f6e4cb Mon Sep 17 00:00:00 2001 From: jerrrrycho Date: Sat, 10 Oct 2026 15:05:48 +0200 Subject: [PATCH] refactor(sonar): remove redundant access specifiers (cpp:S3539) --- McZapkie/MOVER.h | 1 - McZapkie/Oerlikon_ESt.h | 3 --- McZapkie/hamulce.h | 3 --- input/command.h | 1 - model/MdlMngr.h | 1 - world/Traction.h | 1 - 6 files changed, 10 deletions(-) diff --git a/McZapkie/MOVER.h b/McZapkie/MOVER.h index 67f85413..7b075e91 100644 --- a/McZapkie/MOVER.h +++ b/McZapkie/MOVER.h @@ -2294,7 +2294,6 @@ class TMoverParameters bool AIHintPantUpIfIdle{true}; // whether raise both pantographs if idling for a while double AIHintLocalBrakeAccFactor{1.05}; // suggested acceleration weight for local brake operation - public: TMoverParameters(double VelInitial, std::string TypeNameInit, std::string NameInit, int Cab); // obsługa sprzęgów static double CouplerDist(TMoverParameters const *Left, TMoverParameters const *Right); diff --git a/McZapkie/Oerlikon_ESt.h b/McZapkie/Oerlikon_ESt.h index 16fd7b3c..1f2e71c6 100644 --- a/McZapkie/Oerlikon_ESt.h +++ b/McZapkie/Oerlikon_ESt.h @@ -70,7 +70,6 @@ static int const P_ed = 5; class TPrzekladnik : public TReservoir // przekladnik (powtarzacz) { - private: public: std::shared_ptr BrakeRes; std::shared_ptr Next; @@ -82,7 +81,6 @@ class TPrzekladnik : public TReservoir // przekladnik (powtarzacz) class TRura : public TPrzekladnik // nieprzekladnik, rura laczaca { - private: public: TRura() : TPrzekladnik() {}; double P(void) override; @@ -154,7 +152,6 @@ class TPrzek_PZZ : public TPrzekladnik { class TPrzekZalamany : public TPrzekladnik // Knicksventil { - private: public: TPrzekZalamany() : TPrzekladnik() diff --git a/McZapkie/hamulce.h b/McZapkie/hamulce.h index 802929da..47fb7913 100644 --- a/McZapkie/hamulce.h +++ b/McZapkie/hamulce.h @@ -567,7 +567,6 @@ class TWest : public TBrake class TESt : public TBrake { - private: protected: /// Control reservoir (ZS) — long-term reference pressure. std::shared_ptr CntrlRes; // zbiornik sterujący @@ -627,7 +626,6 @@ class TESt : public TBrake class TESt3 : public TESt { - private: // double CylFlowSpeed[2][2]; //zmienna nie uzywana public: @@ -713,7 +711,6 @@ class TESt4R : public TESt class TLSt : public TESt4R { - private: // double CylFlowSpeed[2][2]; // zmienna nie używana protected: diff --git a/input/command.h b/input/command.h index 1d963289..f6252f04 100644 --- a/input/command.h +++ b/input/command.h @@ -530,7 +530,6 @@ public: void post(user_command const Command, double const Param1, double const Param2, int const Action, uint16_t Recipient, glm::vec3 Position = glm::vec3(0.0f) , const std::string *Payload = nullptr) const; -private: // types // members }; diff --git a/model/MdlMngr.h b/model/MdlMngr.h index 1424f08d..fb255f2e 100644 --- a/model/MdlMngr.h +++ b/model/MdlMngr.h @@ -12,7 +12,6 @@ http://mozilla.org/MPL/2.0/. class TMdlContainer { friend class TModelsManager; -private: TModel3d *LoadModel( std::string const &Name, bool const Dynamic ); std::shared_ptr Model { nullptr }; std::string m_name; diff --git a/world/Traction.h b/world/Traction.h index e5bfec13..0133e409 100644 --- a/world/Traction.h +++ b/world/Traction.h @@ -29,7 +29,6 @@ class TTraction : public scene::basic_node TTraction *hvNext[ 2 ] { nullptr, nullptr }; //łączenie drutów w sieć int iNext[ 2 ] { 0, 0 }; // do którego końca się łączy int iLast { 0 }; //że niby ostatni drut // ustawiony bit 0, jeśli jest ostatnim drutem w sekcji; bit1 - przedostatni - public: glm::dvec3 pPoint1; glm::dvec3 pPoint2; glm::dvec3 pPoint3;