From 351e803a377207a8a974b55fb2ab42a21e05789e Mon Sep 17 00:00:00 2001 From: mpv Date: Wed, 30 Sep 2015 15:32:44 +0300 Subject: [PATCH] Remove obsolete methods --- src/GeomAlgoAPI/GeomAlgoAPI_Boolean.cpp | 33 ------------------------- src/GeomAlgoAPI/GeomAlgoAPI_Boolean.h | 23 ----------------- 2 files changed, 56 deletions(-) diff --git a/src/GeomAlgoAPI/GeomAlgoAPI_Boolean.cpp b/src/GeomAlgoAPI/GeomAlgoAPI_Boolean.cpp index e3f7141be..709031f3b 100644 --- a/src/GeomAlgoAPI/GeomAlgoAPI_Boolean.cpp +++ b/src/GeomAlgoAPI/GeomAlgoAPI_Boolean.cpp @@ -16,39 +16,6 @@ #include #include -//================================================================================================= -std::shared_ptr GeomAlgoAPI_Boolean::makeCut(const ListOfShape& theObjects, - const ListOfShape& theTools) -{ - GeomAlgoAPI_Boolean aBoolAlgo(theObjects, theTools, BOOL_CUT); - if(aBoolAlgo.isDone() && !aBoolAlgo.shape()->isNull() && aBoolAlgo.isValid()) { - return aBoolAlgo.shape(); - } - return std::shared_ptr(); -} - -//================================================================================================= -std::shared_ptr GeomAlgoAPI_Boolean::makeFuse(const ListOfShape& theObjects, - const ListOfShape& theTools) -{ - GeomAlgoAPI_Boolean aBoolAlgo(theObjects, theTools, BOOL_FUSE); - if(aBoolAlgo.isDone() && !aBoolAlgo.shape()->isNull() && aBoolAlgo.isValid()) { - return aBoolAlgo.shape(); - } - return std::shared_ptr(); -} - -//================================================================================================= -std::shared_ptr GeomAlgoAPI_Boolean::makeCommon(const ListOfShape& theObjects, - const ListOfShape& theTools) -{ - GeomAlgoAPI_Boolean aBoolAlgo(theObjects, theTools, BOOL_COMMON); - if(aBoolAlgo.isDone() && !aBoolAlgo.shape()->isNull() && aBoolAlgo.isValid()) { - return aBoolAlgo.shape(); - } - return std::shared_ptr(); -} - //================================================================================================= GeomAlgoAPI_Boolean::GeomAlgoAPI_Boolean(const ListOfShape& theObjects, const ListOfShape& theTools, diff --git a/src/GeomAlgoAPI/GeomAlgoAPI_Boolean.h b/src/GeomAlgoAPI/GeomAlgoAPI_Boolean.h index 86e6dc9b8..5c2059b88 100644 --- a/src/GeomAlgoAPI/GeomAlgoAPI_Boolean.h +++ b/src/GeomAlgoAPI/GeomAlgoAPI_Boolean.h @@ -31,29 +31,6 @@ public: }; public: - /** \brief Creates cut boolean operation. - * \param[in] theObjects the main shape. - * \param[in] theTools toole shape for boolean. - * \return a solid or compound of solids as result of operation. - */ - GEOMALGOAPI_EXPORT static std::shared_ptr makeCut(const ListOfShape& theObjects, - const ListOfShape& theTools); - - /** \brief Creates fuse boolean operation. - * \param[in] theObjects the main shape. - * \param[in] theTools second shape. - * \return a solid as result of operation. - */ - GEOMALGOAPI_EXPORT static std::shared_ptr makeFuse(const ListOfShape& theObjects, - const ListOfShape& theTools); - - /** \brief Creates common boolean operation. - * \param[in] theObjects the main shape. - * \param[in] theTools second shape. - * \return a solid as result of operation. - */ - GEOMALGOAPI_EXPORT static std::shared_ptr makeCommon(const ListOfShape& theObjects, - const ListOfShape& theTools); /// Constructor. GEOMALGOAPI_EXPORT GeomAlgoAPI_Boolean(const ListOfShape& theObjects, -- 2.39.2