From 0fb0dd57adb3e3a477282f655573c617d5c85195 Mon Sep 17 00:00:00 2001 From: Uwe Date: Sun, 2 Oct 2022 19:36:38 +0200 Subject: [PATCH] [FEM] App, FemConstraint*: remove unused includes - part 2/2 - also sort includes --- src/Mod/Fem/App/FemConstraint.h | 4 ++-- src/Mod/Fem/App/FemConstraintFixed.cpp | 20 ------------------- src/Mod/Fem/App/FemConstraintFixed.h | 3 --- .../Fem/App/FemConstraintFluidBoundary.cpp | 13 +++--------- src/Mod/Fem/App/FemConstraintFluidBoundary.h | 7 +------ src/Mod/Fem/App/FemConstraintForce.cpp | 11 +--------- src/Mod/Fem/App/FemConstraintForce.h | 6 +----- src/Mod/Fem/App/FemConstraintHeatflux.cpp | 12 +---------- .../App/FemConstraintInitialTemperature.cpp | 12 +---------- .../Fem/App/FemConstraintPlaneRotation.cpp | 12 +---------- src/Mod/Fem/App/FemConstraintPressure.cpp | 11 +--------- src/Mod/Fem/App/FemConstraintSpring.cpp | 11 +--------- src/Mod/Fem/App/FemConstraintTemperature.cpp | 12 +---------- src/Mod/Fem/App/FemConstraintTransform.cpp | 12 +---------- 14 files changed, 15 insertions(+), 131 deletions(-) diff --git a/src/Mod/Fem/App/FemConstraint.h b/src/Mod/Fem/App/FemConstraint.h index bed75e7543..ea98a77f39 100644 --- a/src/Mod/Fem/App/FemConstraint.h +++ b/src/Mod/Fem/App/FemConstraint.h @@ -24,10 +24,10 @@ #ifndef FEM_CONSTRAINT_H #define FEM_CONSTRAINT_H -#include -#include #include +#include #include +#include #include diff --git a/src/Mod/Fem/App/FemConstraintFixed.cpp b/src/Mod/Fem/App/FemConstraintFixed.cpp index 30bf786c05..c43ca31cc1 100644 --- a/src/Mod/Fem/App/FemConstraintFixed.cpp +++ b/src/Mod/Fem/App/FemConstraintFixed.cpp @@ -21,30 +21,10 @@ * * ***************************************************************************/ - #include "PreCompiled.h" -#ifndef _PreComp_ -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#endif - #include "FemConstraintFixed.h" -#include -#include using namespace Fem; diff --git a/src/Mod/Fem/App/FemConstraintFixed.h b/src/Mod/Fem/App/FemConstraintFixed.h index 40fdb31c46..79fbf05bf8 100644 --- a/src/Mod/Fem/App/FemConstraintFixed.h +++ b/src/Mod/Fem/App/FemConstraintFixed.h @@ -24,9 +24,6 @@ #ifndef FEM_CONSTRAINTFIXED_H #define FEM_CONSTRAINTFIXED_H -#include -#include - #include "FemConstraint.h" diff --git a/src/Mod/Fem/App/FemConstraintFluidBoundary.cpp b/src/Mod/Fem/App/FemConstraintFluidBoundary.cpp index 3b3644b280..38fb258819 100644 --- a/src/Mod/Fem/App/FemConstraintFluidBoundary.cpp +++ b/src/Mod/Fem/App/FemConstraintFluidBoundary.cpp @@ -21,23 +21,16 @@ * * ***************************************************************************/ - #include "PreCompiled.h" #ifndef _PreComp_ -#include -#include -#include -#include -#include -#include -#include +# include #endif +#include + #include "FemConstraintFluidBoundary.h" -#include -#include using namespace Fem; diff --git a/src/Mod/Fem/App/FemConstraintFluidBoundary.h b/src/Mod/Fem/App/FemConstraintFluidBoundary.h index 4ffcb85ff1..403e27fc12 100644 --- a/src/Mod/Fem/App/FemConstraintFluidBoundary.h +++ b/src/Mod/Fem/App/FemConstraintFluidBoundary.h @@ -21,17 +21,12 @@ * * ***************************************************************************/ - #ifndef FEM_FLUIDBOUNDARY_H #define FEM_FLUIDBOUNDARY_H -#include -#include -#include -#include - #include "FemConstraint.h" + namespace Fem { diff --git a/src/Mod/Fem/App/FemConstraintForce.cpp b/src/Mod/Fem/App/FemConstraintForce.cpp index 2a14d6d1ae..7da870e3a3 100644 --- a/src/Mod/Fem/App/FemConstraintForce.cpp +++ b/src/Mod/Fem/App/FemConstraintForce.cpp @@ -21,23 +21,14 @@ * * ***************************************************************************/ - #include "PreCompiled.h" #ifndef _PreComp_ -#include -#include -#include -#include -#include -#include -#include +# include #endif #include "FemConstraintForce.h" -#include -#include using namespace Fem; diff --git a/src/Mod/Fem/App/FemConstraintForce.h b/src/Mod/Fem/App/FemConstraintForce.h index cc3ee43818..7db3bb904f 100644 --- a/src/Mod/Fem/App/FemConstraintForce.h +++ b/src/Mod/Fem/App/FemConstraintForce.h @@ -21,16 +21,12 @@ * * ***************************************************************************/ - #ifndef FEM_CONSTRAINTFORCE_H #define FEM_CONSTRAINTFORCE_H -#include -#include -#include - #include "FemConstraint.h" + namespace Fem { diff --git a/src/Mod/Fem/App/FemConstraintHeatflux.cpp b/src/Mod/Fem/App/FemConstraintHeatflux.cpp index 3a652c979f..1d98082d67 100644 --- a/src/Mod/Fem/App/FemConstraintHeatflux.cpp +++ b/src/Mod/Fem/App/FemConstraintHeatflux.cpp @@ -22,21 +22,11 @@ * * ***************************************************************************/ - #include "PreCompiled.h" -#ifndef _PreComp_ -#include -#include -#include -#include -#include -#include -#include -#endif - #include "FemConstraintHeatflux.h" + using namespace Fem; PROPERTY_SOURCE(Fem::ConstraintHeatflux, Fem::Constraint) diff --git a/src/Mod/Fem/App/FemConstraintInitialTemperature.cpp b/src/Mod/Fem/App/FemConstraintInitialTemperature.cpp index 81e024839b..18a4b4c57b 100644 --- a/src/Mod/Fem/App/FemConstraintInitialTemperature.cpp +++ b/src/Mod/Fem/App/FemConstraintInitialTemperature.cpp @@ -23,21 +23,11 @@ * * ***************************************************************************/ - #include "PreCompiled.h" -#ifndef _PreComp_ -#include -#include -#include -#include -#include -#include -#include -#endif - #include "FemConstraintInitialTemperature.h" + using namespace Fem; PROPERTY_SOURCE(Fem::ConstraintInitialTemperature, Fem::Constraint) diff --git a/src/Mod/Fem/App/FemConstraintPlaneRotation.cpp b/src/Mod/Fem/App/FemConstraintPlaneRotation.cpp index 58b03ebdb5..76e5b01075 100644 --- a/src/Mod/Fem/App/FemConstraintPlaneRotation.cpp +++ b/src/Mod/Fem/App/FemConstraintPlaneRotation.cpp @@ -21,21 +21,11 @@ * * ***************************************************************************/ - #include "PreCompiled.h" -#ifndef _PreComp_ -#include -#include -#include -#include -#include -#include -#include -#endif - #include "FemConstraintPlaneRotation.h" + using namespace Fem; PROPERTY_SOURCE(Fem::ConstraintPlaneRotation, Fem::Constraint) diff --git a/src/Mod/Fem/App/FemConstraintPressure.cpp b/src/Mod/Fem/App/FemConstraintPressure.cpp index 85e095ce02..ee14198125 100644 --- a/src/Mod/Fem/App/FemConstraintPressure.cpp +++ b/src/Mod/Fem/App/FemConstraintPressure.cpp @@ -23,18 +23,9 @@ #include "PreCompiled.h" -#ifndef _PreComp_ -#include -#include -#include -#include -#include -#include -#include -#endif - #include "FemConstraintPressure.h" + using namespace Fem; PROPERTY_SOURCE(Fem::ConstraintPressure, Fem::Constraint) diff --git a/src/Mod/Fem/App/FemConstraintSpring.cpp b/src/Mod/Fem/App/FemConstraintSpring.cpp index b70a8a4c07..b8fe3d1194 100644 --- a/src/Mod/Fem/App/FemConstraintSpring.cpp +++ b/src/Mod/Fem/App/FemConstraintSpring.cpp @@ -23,18 +23,9 @@ #include "PreCompiled.h" -#ifndef _PreComp_ -#include -#include -#include -#include -#include -#include -#include -#endif - #include "FemConstraintSpring.h" + using namespace Fem; PROPERTY_SOURCE(Fem::ConstraintSpring, Fem::Constraint) diff --git a/src/Mod/Fem/App/FemConstraintTemperature.cpp b/src/Mod/Fem/App/FemConstraintTemperature.cpp index ba51f39d55..2a990abfc7 100644 --- a/src/Mod/Fem/App/FemConstraintTemperature.cpp +++ b/src/Mod/Fem/App/FemConstraintTemperature.cpp @@ -23,21 +23,11 @@ * * ***************************************************************************/ - #include "PreCompiled.h" -#ifndef _PreComp_ -#include -#include -#include -#include -#include -#include -#include -#endif - #include "FemConstraintTemperature.h" + using namespace Fem; PROPERTY_SOURCE(Fem::ConstraintTemperature, Fem::Constraint) diff --git a/src/Mod/Fem/App/FemConstraintTransform.cpp b/src/Mod/Fem/App/FemConstraintTransform.cpp index 210bbc3205..b427d6eb59 100644 --- a/src/Mod/Fem/App/FemConstraintTransform.cpp +++ b/src/Mod/Fem/App/FemConstraintTransform.cpp @@ -21,21 +21,11 @@ * * ***************************************************************************/ - #include "PreCompiled.h" -#ifndef _PreComp_ -#include -#include -#include -#include -#include -#include -#include -#endif - #include "FemConstraintTransform.h" + using namespace Fem; PROPERTY_SOURCE(Fem::ConstraintTransform, Fem::Constraint)