diff --git a/src/Mod/MeshPart/App/Mesher.cpp b/src/Mod/MeshPart/App/Mesher.cpp index 9aae079569..a67ff06a3f 100644 --- a/src/Mod/MeshPart/App/Mesher.cpp +++ b/src/Mod/MeshPart/App/Mesher.cpp @@ -37,7 +37,6 @@ #include "Mesher.h" - #ifdef HAVE_SMESH #if defined(__clang__) #pragma clang diagnostic push @@ -53,10 +52,6 @@ #include #include -#if SMESH_VERSION_MAJOR < 7 -#include -#endif - #include #include #include @@ -362,7 +357,6 @@ Mesh::MeshObject* Mesher::createMesh() const SMESH_Mesh* mesh = meshgen->CreateMesh(0, true); #endif - int hyp = 0; switch (method) { @@ -490,11 +484,7 @@ Mesh::MeshObject* Mesher::createMesh() const #endif hypoth.push_back(hyp1d); } -#if SMESH_VERSION_MAJOR < 7 - StdMeshers_TrianglePreference* hyp2d_1 = - new StdMeshers_TrianglePreference(hyp++, 0, meshgen); - hypoth.push_back(hyp2d_1); -#endif + #if SMESH_VERSION_MAJOR >= 9 StdMeshers_MEFISTO_2D* alg2d = new StdMeshers_MEFISTO_2D(hyp++, meshgen); #else