From e0692f19bd98017d204a03f4da799c9fffb66995 Mon Sep 17 00:00:00 2001 From: azv Date: Wed, 19 Dec 2018 19:25:06 +0300 Subject: [PATCH] [Code coverage GeomAlgoAPI]: Remove unused method hasVolume() --- src/GeomAlgoAPI/GeomAlgoAPI_MakeShape.cpp | 14 -------------- src/GeomAlgoAPI/GeomAlgoAPI_MakeShape.h | 3 --- 2 files changed, 17 deletions(-) diff --git a/src/GeomAlgoAPI/GeomAlgoAPI_MakeShape.cpp b/src/GeomAlgoAPI/GeomAlgoAPI_MakeShape.cpp index ded490e1f..f156e3d58 100644 --- a/src/GeomAlgoAPI/GeomAlgoAPI_MakeShape.cpp +++ b/src/GeomAlgoAPI/GeomAlgoAPI_MakeShape.cpp @@ -79,20 +79,6 @@ bool GeomAlgoAPI_MakeShape::isValid() const return (aChecker.IsValid() == Standard_True); } -//================================================================================================== -bool GeomAlgoAPI_MakeShape::hasVolume() const -{ - bool hasVolume = false; - if(isValid()) { - const TopoDS_Shape& aRShape = myShape->impl(); - GProp_GProps aGProp; - BRepGProp::VolumeProperties(aRShape, aGProp); - if(aGProp.Mass() > Precision::Confusion()) - hasVolume = true; - } - return hasVolume; -} - //================================================================================================== std::shared_ptr GeomAlgoAPI_MakeShape::mapOfSubShapes() const { diff --git a/src/GeomAlgoAPI/GeomAlgoAPI_MakeShape.h b/src/GeomAlgoAPI/GeomAlgoAPI_MakeShape.h index 7b3c78f35..86f455315 100644 --- a/src/GeomAlgoAPI/GeomAlgoAPI_MakeShape.h +++ b/src/GeomAlgoAPI/GeomAlgoAPI_MakeShape.h @@ -85,9 +85,6 @@ public: /// \return true if resulting shape is valid. GEOMALGOAPI_EXPORT bool isValid() const; - /// \return true if resulting shape has volume. - GEOMALGOAPI_EXPORT bool hasVolume() const; - /// \return map of sub-shapes of the result. To be used for History keeping. GEOMALGOAPI_EXPORT std::shared_ptr mapOfSubShapes() const; -- 2.39.2