]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
[Code coverage GeomAlgoAPI]: Remove unused method in Partition
authorazv <azv@opencascade.com>
Thu, 20 Dec 2018 04:09:06 +0000 (07:09 +0300)
committerazv <azv@opencascade.com>
Thu, 20 Dec 2018 04:23:59 +0000 (07:23 +0300)
src/GeomAlgoAPI/GeomAlgoAPI_Partition.cpp
src/GeomAlgoAPI/GeomAlgoAPI_Partition.h

index 092299ec62d318e2001ccea483eb005ee4481381..e67df9a8b8e92032392358706af7d12974785b25 100644 (file)
@@ -126,17 +126,6 @@ static void sortCompound(TopoDS_Shape& theCompound, GEOMAlgo_Splitter* theOperat
   theCompound = aResCompound;
 }
 
-//=================================================================================================
-std::shared_ptr<GeomAPI_Shape> 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<GeomAPI_Shape>();
-}
-
 //=================================================================================================
 GeomAlgoAPI_Partition::GeomAlgoAPI_Partition(const ListOfShape& theObjects,
                                              const ListOfShape& theTools)
index 17e7c40c7bf184d941fbdd52184674a852963643..5eae57efcf8c159380c17b5e3fdcf1e39c0453d2 100644 (file)
 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<GeomAPI_Shape> make(const ListOfShape& theObjects,
-                                                                const ListOfShape& theTools);
-
   /// Constructor.
   GEOMALGOAPI_EXPORT GeomAlgoAPI_Partition(const ListOfShape& theObjects,
                                            const ListOfShape& theTools);