From e9b05712fca3943201ecd6db417bb3478e24b7b3 Mon Sep 17 00:00:00 2001 From: azv Date: Thu, 20 Dec 2018 07:09:06 +0300 Subject: [PATCH] [Code coverage GeomAlgoAPI]: Remove unused method in Partition --- src/GeomAlgoAPI/GeomAlgoAPI_Partition.cpp | 11 ----------- src/GeomAlgoAPI/GeomAlgoAPI_Partition.h | 9 --------- 2 files changed, 20 deletions(-) diff --git a/src/GeomAlgoAPI/GeomAlgoAPI_Partition.cpp b/src/GeomAlgoAPI/GeomAlgoAPI_Partition.cpp index 092299ec6..e67df9a8b 100644 --- a/src/GeomAlgoAPI/GeomAlgoAPI_Partition.cpp +++ b/src/GeomAlgoAPI/GeomAlgoAPI_Partition.cpp @@ -126,17 +126,6 @@ static void sortCompound(TopoDS_Shape& theCompound, GEOMAlgo_Splitter* theOperat theCompound = aResCompound; } -//================================================================================================= -std::shared_ptr GeomAlgoAPI_Partition::make(const ListOfShape& theObjects, - const ListOfShape& theTools) -{ - GeomAlgoAPI_Partition aPartitionAlgo(theObjects, theTools); - if(aPartitionAlgo.isDone() && !aPartitionAlgo.shape()->isNull() && aPartitionAlgo.isValid()) { - return aPartitionAlgo.shape(); - } - return std::shared_ptr(); -} - //================================================================================================= GeomAlgoAPI_Partition::GeomAlgoAPI_Partition(const ListOfShape& theObjects, const ListOfShape& theTools) diff --git a/src/GeomAlgoAPI/GeomAlgoAPI_Partition.h b/src/GeomAlgoAPI/GeomAlgoAPI_Partition.h index 17e7c40c7..5eae57efc 100644 --- a/src/GeomAlgoAPI/GeomAlgoAPI_Partition.h +++ b/src/GeomAlgoAPI/GeomAlgoAPI_Partition.h @@ -32,15 +32,6 @@ class GeomAlgoAPI_Partition : public GeomAlgoAPI_MakeShape { public: - /// \brief Creates common partition operation. - /// \param[in] theObjects the main shape. - /// \param[in] theTools second shape. - /// \param[in] theGroupConnectedTopology if true then result will be a compound of groups - /// with connected topology(compsolids or compounds of shapes with shared topology). - /// \return a solid as result of operation. - GEOMALGOAPI_EXPORT static std::shared_ptr make(const ListOfShape& theObjects, - const ListOfShape& theTools); - /// Constructor. GEOMALGOAPI_EXPORT GeomAlgoAPI_Partition(const ListOfShape& theObjects, const ListOfShape& theTools); -- 2.39.2