diff --git a/FileIO/GMSHInterface.cpp b/FileIO/GMSHInterface.cpp index 52409f073fd10c839de7c26bb810c62a95b2a498..b113896c1c9e5bbcf912c1255ced235ff4653787 100644 --- a/FileIO/GMSHInterface.cpp +++ b/FileIO/GMSHInterface.cpp @@ -28,7 +28,6 @@ #include "FileIO/GMSHInterface.h" #include "FileIO/GmshIO/GMSHAdaptiveMeshDensity.h" #include "FileIO/GmshIO/GMSHFixedMeshDensity.h" -#include "FileIO/GmshIO/GMSHNoMeshDensity.h" #include "GeoLib/AnalyticalGeometry.h" #include "GeoLib/GEOObjects.h" @@ -57,9 +56,6 @@ GMSHInterface::GMSHInterface(GeoLib::GEOObjects & geo_objs, _n_lines(0), _n_plane_sfc(0), _geo_objs(geo_objs), _selected_geometries(selected_geometries) { switch (mesh_density_algorithm) { - case GMSH::MeshDensityAlgorithm::NoMeshDensity: - _mesh_density_strategy = new GMSH::GMSHNoMeshDensity; - break; case GMSH::MeshDensityAlgorithm::FixedMeshDensity: _mesh_density_strategy = new GMSH::GMSHFixedMeshDensity(param1); break; diff --git a/FileIO/GMSHInterface.h b/FileIO/GMSHInterface.h index 64450e738c184b63da93f441e6f85f1c308ac5c5..9ac706ff741ffe8b822f0a056ee9772e3b51a785 100644 --- a/FileIO/GMSHInterface.h +++ b/FileIO/GMSHInterface.h @@ -46,7 +46,6 @@ namespace FileIO namespace GMSH { enum class MeshDensityAlgorithm { - NoMeshDensity = 0, //!< do not set the parameter FixedMeshDensity, //!< set the parameter with a fixed value AdaptiveMeshDensity //!< computing the mesh density employing a QuadTree }; diff --git a/FileIO/GmshIO/GMSHMeshDensityStrategy.h b/FileIO/GmshIO/GMSHMeshDensityStrategy.h index 3fc86593a9dd07ae7273817f052eb7490d95290a..27c730390f90a69dbbdb026eeacbf94940b41938 100644 --- a/FileIO/GmshIO/GMSHMeshDensityStrategy.h +++ b/FileIO/GmshIO/GMSHMeshDensityStrategy.h @@ -28,7 +28,7 @@ namespace GMSH { /** * virtual base class GMSHMeshDensityStrategy for classes - * GMSHAdaptiveMeshDensity, GMSHFixedMeshDensity and GMSHNoMeshDensity + * GMSHAdaptiveMeshDensity and GMSHFixedMeshDensity. */ class GMSHMeshDensityStrategy { diff --git a/FileIO/GmshIO/GMSHNoMeshDensity.h b/FileIO/GmshIO/GMSHNoMeshDensity.h deleted file mode 100644 index 639efef590c73105d22460566d33f3784fdc29e4..0000000000000000000000000000000000000000 --- a/FileIO/GmshIO/GMSHNoMeshDensity.h +++ /dev/null @@ -1,49 +0,0 @@ -/** - * \file - * \author Thomas Fischer - * \date Mar 5, 2012 - * \brief Definition of the GMSHNoMeshDensity class. - * - * \copyright - * Copyright (c) 2012-2016, OpenGeoSys Community (http://www.opengeosys.org) - * Distributed under a Modified BSD License. - * See accompanying file LICENSE.txt or - * http://www.opengeosys.org/project/license - * - */ - -#ifndef GMSHNOMESHDENSITY_H_ -#define GMSHNOMESHDENSITY_H_ - -#include "GMSHMeshDensityStrategy.h" - -namespace FileIO -{ -namespace GMSH { - -class GMSHNoMeshDensity: public FileIO::GMSH::GMSHMeshDensityStrategy { -public: - GMSHNoMeshDensity() {} - virtual ~GMSHNoMeshDensity() {} - void init(std::vector<GeoLib::Point const*> const& vec) - { - // to avoid a warning here: - (void)(vec); - } - - double getMeshDensityAtPoint(GeoLib::Point const*const) const - { - return 0.0; - } - - double getMeshDensityAtStation(GeoLib::Point const*const) const - { - return 0.0; - } - -}; - -} -} - -#endif /* GMSHNOMESHDENSITY_H_ */ diff --git a/FileIO/GmshIO/GMSHPolygonTree.cpp b/FileIO/GmshIO/GMSHPolygonTree.cpp index a766651823ae50676d5399d266c8a88cf0732e95..38b352d5401a7956b165571afd217eca866c3bec 100644 --- a/FileIO/GmshIO/GMSHPolygonTree.cpp +++ b/FileIO/GmshIO/GMSHPolygonTree.cpp @@ -14,7 +14,6 @@ #include "GMSHPolygonTree.h" -#include "GMSHNoMeshDensity.h" #include "GMSHFixedMeshDensity.h" #include "GMSHAdaptiveMeshDensity.h"