diff --git a/FileIO/GmshIO/GMSHFixedMeshDensity.cpp b/FileIO/GmshIO/GMSHFixedMeshDensity.cpp index 4a4095b5e4527b39e545c0254060802fae2a0ea8..720f103819d66abc07fd860fc9c8ec780c24edf6 100644 --- a/FileIO/GmshIO/GMSHFixedMeshDensity.cpp +++ b/FileIO/GmshIO/GMSHFixedMeshDensity.cpp @@ -29,17 +29,13 @@ void GMSHFixedMeshDensity::init(std::vector<GeoLib::Point const*> const& vec) (void)(vec); } -double GMSHFixedMeshDensity::getMeshDensityAtPoint(GeoLib::Point const*const pnt) const +double GMSHFixedMeshDensity::getMeshDensityAtPoint(GeoLib::Point const*const) const { - // to avoid a warning here: - (void)(const_cast<GeoLib::Point const*>(pnt)); return _mesh_density; } -double GMSHFixedMeshDensity::getMeshDensityAtStation(GeoLib::Point const*const pnt) const +double GMSHFixedMeshDensity::getMeshDensityAtStation(GeoLib::Point const*const) const { - // to avoid a warning here: - (void)(const_cast<GeoLib::Point const*>(pnt)); return _mesh_density; } diff --git a/FileIO/GmshIO/GMSHNoMeshDensity.h b/FileIO/GmshIO/GMSHNoMeshDensity.h index bdfd61d0e1c4c5faca34c6bc2c402b78b6451477..639efef590c73105d22460566d33f3784fdc29e4 100644 --- a/FileIO/GmshIO/GMSHNoMeshDensity.h +++ b/FileIO/GmshIO/GMSHNoMeshDensity.h @@ -31,17 +31,13 @@ public: (void)(vec); } - double getMeshDensityAtPoint(GeoLib::Point const*const pnt) const + double getMeshDensityAtPoint(GeoLib::Point const*const) const { - // to avoid a warning here: - (void)(pnt); return 0.0; } - double getMeshDensityAtStation(GeoLib::Point const*const pnt) const + double getMeshDensityAtStation(GeoLib::Point const*const) const { - // to avoid a warning here: - (void)(pnt); return 0.0; }