From: azv Date: Thu, 20 Dec 2018 04:09:06 +0000 (+0300) Subject: [Code coverage GeomAlgoAPI]: Remove unused method in Partition X-Git-Tag: End2018~23 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=e9b05712fca3943201ecd6db417bb3478e24b7b3;p=modules%2Fshaper.git [Code coverage GeomAlgoAPI]: Remove unused method in Partition --- 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);