From 449d52ffa82547fa348ca7a0bfac5474eefc04c7 Mon Sep 17 00:00:00 2001 From: Uwe Date: Sun, 2 Oct 2022 18:51:28 +0200 Subject: [PATCH] [FEM] App, FemConstraint*: remove unused includes - part 1 - also sort includes --- src/Mod/Fem/App/FemConstraint.cpp | 49 ++++++++----------- src/Mod/Fem/App/FemConstraint.h | 3 +- src/Mod/Fem/App/FemConstraintBearing.cpp | 14 ++---- src/Mod/Fem/App/FemConstraintBearing.h | 3 +- src/Mod/Fem/App/FemConstraintContact.cpp | 12 +---- src/Mod/Fem/App/FemConstraintDisplacement.cpp | 12 +---- src/Mod/Fem/App/FemConstraintGear.cpp | 11 +---- src/Mod/Fem/App/FemConstraintGear.h | 6 +-- src/Mod/Fem/App/FemConstraintPulley.cpp | 11 +---- src/Mod/Fem/App/FemConstraintPulley.h | 3 -- 10 files changed, 31 insertions(+), 93 deletions(-) diff --git a/src/Mod/Fem/App/FemConstraint.cpp b/src/Mod/Fem/App/FemConstraint.cpp index d6f10a2dc5..df68afac2d 100644 --- a/src/Mod/Fem/App/FemConstraint.cpp +++ b/src/Mod/Fem/App/FemConstraint.cpp @@ -21,57 +21,48 @@ * * ***************************************************************************/ - #include "PreCompiled.h" #ifndef _PreComp_ # include //OvG: Required for log10 -# include -# include -# include -# include -# include -# include -# include -# include -# include # include -# include -# include -# include -# include -# include # include +# include +# include +# include # include -# include -# include -# include -# include +# include +# include # include +# include +# include +# include +# include +# include +# include +# include +# include # include # include +# include +# include # if OCC_VERSION_HEX < 0x070600 -# include -# include +# include +# include # endif #endif -#include "FemConstraint.h" -#include "FemTools.h" - #include #include #include - #include -#include -#include + +#include "FemConstraint.h" +#include "FemTools.h" using namespace Fem; - - #if OCC_VERSION_HEX >= 0x070600 using Adaptor3d_HSurface = Adaptor3d_Surface; using BRepAdaptor_HSurface = BRepAdaptor_Surface; diff --git a/src/Mod/Fem/App/FemConstraint.h b/src/Mod/Fem/App/FemConstraint.h index b5780d2a84..bed75e7543 100644 --- a/src/Mod/Fem/App/FemConstraint.h +++ b/src/Mod/Fem/App/FemConstraint.h @@ -21,7 +21,6 @@ * * ***************************************************************************/ - #ifndef FEM_CONSTRAINT_H #define FEM_CONSTRAINT_H @@ -29,9 +28,9 @@ #include #include #include -#include #include + namespace Fem { /** diff --git a/src/Mod/Fem/App/FemConstraintBearing.cpp b/src/Mod/Fem/App/FemConstraintBearing.cpp index 9cf7cf63ed..e54cef3e39 100644 --- a/src/Mod/Fem/App/FemConstraintBearing.cpp +++ b/src/Mod/Fem/App/FemConstraintBearing.cpp @@ -21,23 +21,18 @@ * * ***************************************************************************/ - #include "PreCompiled.h" #ifndef _PreComp_ -#include -#include -#include -#include -#include #include -#include +#include +#include #endif +#include + #include "FemConstraintBearing.h" -#include -#include using namespace Fem; @@ -64,7 +59,6 @@ App::DocumentObjectExecReturn *ConstraintBearing::execute() void ConstraintBearing::onChanged(const App::Property* prop) { - //Base::Console().Error("ConstraintBearing: onChanged %s\n", prop->getName()); // Note: If we call this at the end, then the symbol is not oriented correctly initially // because the NormalDirection has not been calculated yet Constraint::onChanged(prop); diff --git a/src/Mod/Fem/App/FemConstraintBearing.h b/src/Mod/Fem/App/FemConstraintBearing.h index 62a3ef8d3d..b5d91ce515 100644 --- a/src/Mod/Fem/App/FemConstraintBearing.h +++ b/src/Mod/Fem/App/FemConstraintBearing.h @@ -21,16 +21,15 @@ * * ***************************************************************************/ - #ifndef FEM_CONSTRAINTBEARING_H #define FEM_CONSTRAINTBEARING_H #include #include -#include #include "FemConstraint.h" + namespace Fem { diff --git a/src/Mod/Fem/App/FemConstraintContact.cpp b/src/Mod/Fem/App/FemConstraintContact.cpp index d368ef24d9..7a1d09be44 100644 --- a/src/Mod/Fem/App/FemConstraintContact.cpp +++ b/src/Mod/Fem/App/FemConstraintContact.cpp @@ -21,21 +21,11 @@ * * ***************************************************************************/ - #include "PreCompiled.h" -#ifndef _PreComp_ -#include -#include -#include -#include -#include -#include -#include -#endif - #include "FemConstraintContact.h" + using namespace Fem; PROPERTY_SOURCE(Fem::ConstraintContact, Fem::Constraint) diff --git a/src/Mod/Fem/App/FemConstraintDisplacement.cpp b/src/Mod/Fem/App/FemConstraintDisplacement.cpp index e7da523dfe..c4d847138f 100644 --- a/src/Mod/Fem/App/FemConstraintDisplacement.cpp +++ b/src/Mod/Fem/App/FemConstraintDisplacement.cpp @@ -23,21 +23,11 @@ * * ***************************************************************************/ - #include "PreCompiled.h" -#ifndef _PreComp_ -#include -#include -#include -#include -#include -#include -#include -#endif - #include "FemConstraintDisplacement.h" + using namespace Fem; PROPERTY_SOURCE(Fem::ConstraintDisplacement, Fem::Constraint) diff --git a/src/Mod/Fem/App/FemConstraintGear.cpp b/src/Mod/Fem/App/FemConstraintGear.cpp index df15ad06a5..4cd1e03502 100644 --- a/src/Mod/Fem/App/FemConstraintGear.cpp +++ b/src/Mod/Fem/App/FemConstraintGear.cpp @@ -21,23 +21,14 @@ * * ***************************************************************************/ - #include "PreCompiled.h" #ifndef _PreComp_ -#include -#include -#include -#include -#include -#include -#include +# include #endif #include "FemConstraintGear.h" -#include -#include using namespace Fem; diff --git a/src/Mod/Fem/App/FemConstraintGear.h b/src/Mod/Fem/App/FemConstraintGear.h index 59b03497c6..b5a5ee5ed6 100644 --- a/src/Mod/Fem/App/FemConstraintGear.h +++ b/src/Mod/Fem/App/FemConstraintGear.h @@ -21,16 +21,12 @@ * * ***************************************************************************/ - #ifndef FEM_CONSTRAINTGear_H #define FEM_CONSTRAINTGear_H -#include -#include -#include - #include "FemConstraintBearing.h" + namespace Fem { diff --git a/src/Mod/Fem/App/FemConstraintPulley.cpp b/src/Mod/Fem/App/FemConstraintPulley.cpp index d6e394b41a..d23fd72fd0 100644 --- a/src/Mod/Fem/App/FemConstraintPulley.cpp +++ b/src/Mod/Fem/App/FemConstraintPulley.cpp @@ -21,23 +21,14 @@ * * ***************************************************************************/ - #include "PreCompiled.h" #ifndef _PreComp_ -#include -#include -#include -#include -#include -#include -#include +# include #endif #include "FemConstraintPulley.h" -#include -#include using namespace Fem; diff --git a/src/Mod/Fem/App/FemConstraintPulley.h b/src/Mod/Fem/App/FemConstraintPulley.h index 8ae2f331f1..b881711c51 100644 --- a/src/Mod/Fem/App/FemConstraintPulley.h +++ b/src/Mod/Fem/App/FemConstraintPulley.h @@ -24,9 +24,6 @@ #ifndef FEM_CONSTRAINTPulley_H #define FEM_CONSTRAINTPulley_H -#include -#include - #include "FemConstraintGear.h"