From 0f4d72adbdf0e82b4f04566f8dc7eda0d409a59d Mon Sep 17 00:00:00 2001
From: Thomas Fischer <thomas.fischer@ufz.de>
Date: Fri, 25 Dec 2020 10:04:18 +0100
Subject: [PATCH] [MeL] Cleanup includes.

---
 GeoLib/AnalyticalGeometry.h                                    | 3 ---
 MeshGeoToolsLib/GeoMapper.cpp                                  | 1 -
 MeshLib/ElementCoordinatesMappingLocal.cpp                     | 1 -
 MeshLib/Elements/FaceRule.h                                    | 1 -
 MeshLib/Node.h                                                 | 1 -
 .../NormalTractionBoundaryConditionLocalAssembler.h            | 1 +
 ProcessLib/LIE/Common/Utils.cpp                                | 1 +
 7 files changed, 2 insertions(+), 7 deletions(-)

diff --git a/GeoLib/AnalyticalGeometry.h b/GeoLib/AnalyticalGeometry.h
index 34ce39f5e88..3592d5c2f6d 100644
--- a/GeoLib/AnalyticalGeometry.h
+++ b/GeoLib/AnalyticalGeometry.h
@@ -16,9 +16,6 @@
 
 #include <memory>
 
-#include "MathLib/LinAlg/Dense/DenseMatrix.h"
-#include "MathLib/Vector3.h"
-
 #include "Polygon.h"
 
 namespace GeoLib
diff --git a/MeshGeoToolsLib/GeoMapper.cpp b/MeshGeoToolsLib/GeoMapper.cpp
index 97dcd824304..357365dbf8a 100644
--- a/MeshGeoToolsLib/GeoMapper.cpp
+++ b/MeshGeoToolsLib/GeoMapper.cpp
@@ -89,7 +89,6 @@ void GeoMapper::mapOnMesh(MeshLib::Mesh const*const mesh)
 
     // init grid
     MathLib::Point3d origin(std::array<double,3>{{0,0,0}});
-    MathLib::Vector3 normal(0,0,-1);
     std::vector<MeshLib::Node> flat_nodes;
     flat_nodes.reserve(_surface_mesh->getNumberOfNodes());
     // copy nodes and project the copied nodes to the x-y-plane, i.e. set
diff --git a/MeshLib/ElementCoordinatesMappingLocal.cpp b/MeshLib/ElementCoordinatesMappingLocal.cpp
index 9b3500d9b12..eb9fcb1e4af 100644
--- a/MeshLib/ElementCoordinatesMappingLocal.cpp
+++ b/MeshLib/ElementCoordinatesMappingLocal.cpp
@@ -18,7 +18,6 @@
 #include "MeshLib/Node.h"
 #include "MathLib/MathTools.h"
 #include "MathLib/Point3d.h"
-#include "MathLib/Vector3.h"
 
 namespace detail
 {
diff --git a/MeshLib/Elements/FaceRule.h b/MeshLib/Elements/FaceRule.h
index 70d6e23e670..2f4f47de058 100644
--- a/MeshLib/Elements/FaceRule.h
+++ b/MeshLib/Elements/FaceRule.h
@@ -10,7 +10,6 @@
 
 #pragma once
 
-#include "MathLib/Vector3.h"
 #include "Element.h"
 
 namespace MeshLib
diff --git a/MeshLib/Node.h b/MeshLib/Node.h
index 4a3f465321c..1628c97e98f 100644
--- a/MeshLib/Node.h
+++ b/MeshLib/Node.h
@@ -19,7 +19,6 @@
 #include <vector>
 
 #include "MathLib/Point3dWithID.h"
-#include "MathLib/Vector3.h"
 
 namespace ApplicationUtils
 {
diff --git a/ProcessLib/BoundaryCondition/NormalTractionBoundaryConditionLocalAssembler.h b/ProcessLib/BoundaryCondition/NormalTractionBoundaryConditionLocalAssembler.h
index 47f5b685519..facd6e966b9 100644
--- a/ProcessLib/BoundaryCondition/NormalTractionBoundaryConditionLocalAssembler.h
+++ b/ProcessLib/BoundaryCondition/NormalTractionBoundaryConditionLocalAssembler.h
@@ -11,6 +11,7 @@
 #pragma once
 
 #include "MathLib/LinAlg/Eigen/EigenMapTools.h"
+#include "MathLib/Vector3.h"
 #include "MeshLib/Elements/FaceRule.h"
 #include "NumLib/DOF/DOFTableUtil.h"
 #include "ParameterLib/Parameter.h"
diff --git a/ProcessLib/LIE/Common/Utils.cpp b/ProcessLib/LIE/Common/Utils.cpp
index f18601f1c78..1df5adce7c2 100644
--- a/ProcessLib/LIE/Common/Utils.cpp
+++ b/ProcessLib/LIE/Common/Utils.cpp
@@ -9,6 +9,7 @@
 
 #include "Utils.h"
 
+#include "MathLib/Vector3.h"
 #include "MeshLib/Elements/FaceRule.h"
 
 namespace ProcessLib
-- 
GitLab