]> OCCT Git - occt-copy.git/commitdiff
0027067: Avoid use of virtual methods for implementation of destructors in legacy...
authorabv <abv@opencascade.com>
Sun, 3 Jan 2016 04:11:46 +0000 (07:11 +0300)
committerabv <abv@opencascade.com>
Fri, 8 Jan 2016 17:04:44 +0000 (20:04 +0300)
Redundant methods Delete() and Desroy(), created in CDL as a hack to define destructor for the class, are removed; their definitions are converted to definition of destructors. In a couple of places methods Destroy() are preserved (bug made non-virtual) because they are called explicitly.

116 files changed:
src/AdvApp2Var/AdvApp2Var_Criterion.cxx
src/AdvApp2Var/AdvApp2Var_Criterion.hxx
src/AdvApprox/AdvApprox_Cutting.cxx
src/AdvApprox/AdvApprox_Cutting.hxx
src/Aspect/Aspect_Window.hxx
src/BRepAlgo/BRepAlgo_BooleanOperation.cxx
src/BRepAlgo/BRepAlgo_BooleanOperation.hxx
src/BRepBuilderAPI/BRepBuilderAPI_Command.cxx
src/BRepBuilderAPI/BRepBuilderAPI_Command.hxx
src/BRepBuilderAPI/BRepBuilderAPI_MakeShape.cxx
src/BRepBuilderAPI/BRepBuilderAPI_MakeShape.hxx
src/BRepClass3d/BRepClass3d_SolidExplorer.cxx
src/BRepClass3d/BRepClass3d_SolidExplorer.hxx
src/BRepLib/BRepLib_Command.cxx
src/BRepLib/BRepLib_Command.hxx
src/BRepToIGES/BRepToIGES_BREntity.cxx
src/BRepToIGES/BRepToIGES_BREntity.hxx
src/BinTools/BinTools_ShapeSet.cxx
src/BinTools/BinTools_ShapeSet.hxx
src/CDM/CDM_Document.cxx
src/CDM/CDM_Document.hxx
src/ChFi3d/ChFi3d_Builder.cxx
src/ChFi3d/ChFi3d_Builder.hxx
src/Cocoa/Cocoa_Window.hxx
src/Cocoa/Cocoa_Window.mm
src/FairCurve/FairCurve_Batten.cxx
src/FairCurve/FairCurve_Batten.hxx
src/Graphic3d/Graphic3d_DataStructureManager.cxx
src/Graphic3d/Graphic3d_DataStructureManager.hxx
src/Graphic3d/Graphic3d_Structure.cxx
src/Graphic3d/Graphic3d_Structure.hxx
src/Graphic3d/Graphic3d_StructureManager.cxx
src/Graphic3d/Graphic3d_StructureManager.hxx
src/IFGraph/IFGraph_SubPartsIterator.cxx
src/IFGraph/IFGraph_SubPartsIterator.hxx
src/Interface/Interface_EntityIterator.cxx
src/Interface/Interface_EntityIterator.hxx
src/Interface/Interface_FileReaderTool.cxx
src/Interface/Interface_FileReaderTool.hxx
src/MeshVS/MeshVS_Mesh.cxx
src/MeshVS/MeshVS_Mesh.hxx
src/MoniTool/MoniTool_OptValue.cxx
src/MoniTool/MoniTool_OptValue.hxx
src/MoniTool/MoniTool_TimerSentry.hxx
src/MoniTool/MoniTool_TimerSentry.lxx
src/ProjLib/ProjLib_ProjectOnSurface.cxx
src/ProjLib/ProjLib_ProjectOnSurface.hxx
src/PrsMgr/PrsMgr_Presentation.cxx
src/PrsMgr/PrsMgr_Presentation.hxx
src/QANewModTopOpe/QANewModTopOpe_Limitation.cxx
src/QANewModTopOpe/QANewModTopOpe_Limitation.hxx
src/ShapeUpgrade/ShapeUpgrade_ShapeDivide.cxx
src/ShapeUpgrade/ShapeUpgrade_ShapeDivide.hxx
src/StepData/StepData_FieldList.cxx
src/StepData/StepData_FieldList.hxx
src/StepData/StepData_FieldList1.cxx
src/StepData/StepData_FieldList1.hxx
src/StepData/StepData_FieldListD.cxx
src/StepData/StepData_FieldListD.hxx
src/StepData/StepData_FieldListN.cxx
src/StepData/StepData_FieldListN.hxx
src/StepData/StepData_SelectType.cxx
src/StepData/StepData_SelectType.hxx
src/Storage/Storage_BaseDriver.cxx
src/Storage/Storage_BaseDriver.hxx
src/TopOpeBRep/TopOpeBRep_DSFiller.cxx
src/TopOpeBRep/TopOpeBRep_DSFiller.hxx
src/TopOpeBRep/TopOpeBRep_EdgesIntersector.cxx
src/TopOpeBRep/TopOpeBRep_EdgesIntersector.hxx
src/TopOpeBRepBuild/TopOpeBRepBuild_AreaBuilder.cxx
src/TopOpeBRepBuild/TopOpeBRepBuild_AreaBuilder.hxx
src/TopOpeBRepBuild/TopOpeBRepBuild_Builder.cxx
src/TopOpeBRepBuild/TopOpeBRepBuild_Builder.hxx
src/TopOpeBRepBuild/TopOpeBRepBuild_Builder1.hxx
src/TopOpeBRepBuild/TopOpeBRepBuild_Builder1_1.cxx
src/TopOpeBRepBuild/TopOpeBRepBuild_LoopClassifier.cxx
src/TopOpeBRepBuild/TopOpeBRepBuild_LoopClassifier.hxx
src/TopOpeBRepBuild/TopOpeBRepBuild_LoopSet.cxx
src/TopOpeBRepBuild/TopOpeBRepBuild_LoopSet.hxx
src/TopOpeBRepBuild/TopOpeBRepBuild_ShapeSet.cxx
src/TopOpeBRepBuild/TopOpeBRepBuild_ShapeSet.hxx
src/TopOpeBRepTool/TopOpeBRepTool_BoxSort.cxx
src/TopOpeBRepTool/TopOpeBRepTool_BoxSort.hxx
src/TopOpeBRepTool/TopOpeBRepTool_SolidClassifier.cxx
src/TopOpeBRepTool/TopOpeBRepTool_SolidClassifier.hxx
src/TopTools/TopTools_ShapeSet.cxx
src/TopTools/TopTools_ShapeSet.hxx
src/TransferBRep/TransferBRep_Reader.cxx
src/TransferBRep/TransferBRep_Reader.hxx
src/Units/Units_ShiftedToken.cxx
src/Units/Units_ShiftedToken.hxx
src/Units/Units_Token.cxx
src/Units/Units_Token.hxx
src/WNT/WNT_WClass.cxx
src/WNT/WNT_WClass.hxx
src/WNT/WNT_Window.cxx
src/WNT/WNT_Window.hxx
src/XCAFDoc/XCAFDoc_DocumentTool.cxx
src/XCAFDoc/XCAFDoc_DocumentTool.hxx
src/Xw/Xw_Window.cxx
src/Xw/Xw_Window.hxx
src/math/math_BissecNewton.hxx
src/math/math_BissecNewton.lxx
src/math/math_BrentMinimum.hxx
src/math/math_BrentMinimum.lxx
src/math/math_FRPR.hxx
src/math/math_FRPR.lxx
src/math/math_FunctionSetRoot.cxx
src/math/math_FunctionSetRoot.hxx
src/math/math_FunctionSetRoot.lxx
src/math/math_NewtonFunctionSetRoot.hxx
src/math/math_NewtonFunctionSetRoot.lxx
src/math/math_NewtonMinimum.hxx
src/math/math_NewtonMinimum.lxx
src/math/math_Powell.hxx
src/math/math_Powell.lxx

index a4ed4b2fffc1ee59c6f79e431662b8f1258dff17..c65914408de0fa194d98d3b733f4a8731d8be8dd 100644 (file)
@@ -19,7 +19,7 @@
 #include <AdvApp2Var_Criterion.hxx>
 #include <AdvApp2Var_Patch.hxx>
 
-void AdvApp2Var_Criterion::Delete()
+AdvApp2Var_Criterion::~AdvApp2Var_Criterion()
 {}
 
 //============================================================================
index 12c8a2ead29799097e490cec2b9a12a0ef215dc0..ba92de3002b88b404eb05cc7772e0e76c836936c 100644 (file)
@@ -37,9 +37,7 @@ public:
 
   DEFINE_STANDARD_ALLOC
 
-  
-  Standard_EXPORT virtual void Delete();
-Standard_EXPORT virtual ~AdvApp2Var_Criterion(){Delete() ; }
+  Standard_EXPORT virtual ~AdvApp2Var_Criterion();
   
   Standard_EXPORT virtual void Value (AdvApp2Var_Patch& P, const AdvApp2Var_Context& C) const = 0;
   
index 0b46bba5ee00d9fbc29420dbcd61d649abebc84f..769e1a7f95f67348bd02ee5bfdf9e13b6293d9a9 100644 (file)
@@ -17,5 +17,5 @@
 
 #include <AdvApprox_Cutting.hxx>
 
-void AdvApprox_Cutting::Delete()
+AdvApprox_Cutting::~AdvApprox_Cutting()
 {}
index 6f1651bd65e10bf659a7a05d6260abde17c83902..c6e2c1780b1b17dc312d044874cece03276242bf 100644 (file)
@@ -32,27 +32,10 @@ public:
 
   DEFINE_STANDARD_ALLOC
 
-  
-  Standard_EXPORT virtual void Delete();
-Standard_EXPORT virtual ~AdvApprox_Cutting(){Delete();}
+  Standard_EXPORT virtual ~AdvApprox_Cutting();
   
   Standard_EXPORT virtual Standard_Boolean Value (const Standard_Real a, const Standard_Real b, Standard_Real& cuttingvalue) const = 0;
 
-
-
-
-protected:
-
-
-
-
-
-private:
-
-
-
-
-
 };
 
 
index f309c67d73c14ff1797c01dc5445ea445b72aba0..e5cd1134dad4faea26275bc848d23f155d50402d 100644 (file)
@@ -46,7 +46,6 @@ class Aspect_Window : public MMgt_TShared
 {
 
 public:
-
   
   //! Modifies the window background.
   Standard_EXPORT void SetBackground (const Aspect_Background& ABack);
@@ -76,9 +75,6 @@ public:
   //! and returns TRUE if the window is mapped at screen.
   Standard_EXPORT virtual Standard_Boolean DoMapping() const = 0;
   
-  //! Destroy the Window
-  Standard_EXPORT virtual void Destroy() = 0;
-  
   //! Returns the window background.
   Standard_EXPORT Aspect_Background Background() const;
   
index b72ab399cd3518c0fd1e7971fefe9d8106cdc59a..5c1a383743783cee71adb84cc70df754de5117ff 100644 (file)
@@ -77,10 +77,10 @@ extern void FDSCNX_Close();// see TopOpeBRepDS_connex.cxx
 extern void FDSSDM_Close();// see TopOpeBRepDS_samdom.cxx
 
 //=======================================================================
-//function : Delete 
-//purpose  : alias ~BRepAlgoAPI_BooleanOperation
+//function : ~BRepAlgo_BooleanOperation
+//purpose  : 
 //=======================================================================
-  void BRepAlgo_BooleanOperation::Delete()
+BRepAlgo_BooleanOperation::~BRepAlgo_BooleanOperation()
 {
   FDSSDM_Close();
   FDSCNX_Close();
index a80c041edc0c74785287cd9c681d68a2915306fc..69f20024ab52fa3d62c187bb10cdddb3b05e9c84 100644 (file)
@@ -47,9 +47,7 @@ public:
 
   DEFINE_STANDARD_ALLOC
 
-  
-  Standard_EXPORT virtual void Delete() Standard_OVERRIDE;
-Standard_EXPORT virtual ~BRepAlgo_BooleanOperation() {Delete();}
+  Standard_EXPORT virtual ~BRepAlgo_BooleanOperation();
   
   Standard_EXPORT void PerformDS();
   
index 81b7421e66ae5adf6bd3e52f7517057c0a0c53ad..d770f7f09b7cc92d4374ed098ddab7cd14072dd8 100644 (file)
@@ -27,7 +27,11 @@ BRepBuilderAPI_Command::BRepBuilderAPI_Command() :
 {
 }
 
-void BRepBuilderAPI_Command::Delete()
+//=======================================================================
+//function : ~BRepBuilderAPI_Command
+//purpose  : 
+//=======================================================================
+BRepBuilderAPI_Command::~BRepBuilderAPI_Command()
 {}
 
 //=======================================================================
index d47fd7745e8c0a55317c37ab6ac09e4c338f6a10..a64a8ec86873b27b8f25791ffc05f82bb1b26b51 100644 (file)
@@ -39,10 +39,8 @@ class BRepBuilderAPI_Command
 public:
 
   DEFINE_STANDARD_ALLOC
-
   
-  Standard_EXPORT virtual void Delete();
-Standard_EXPORT virtual ~BRepBuilderAPI_Command(){Delete() ; }
+  Standard_EXPORT virtual ~BRepBuilderAPI_Command();
   
   Standard_EXPORT virtual Standard_Boolean IsDone() const;
   
index 95727530b70790d0dd18365f3d7788dfe020fde5..ba27b58772610bd0dc960a70db343177db210636 100644 (file)
@@ -31,10 +31,6 @@ BRepBuilderAPI_MakeShape::BRepBuilderAPI_MakeShape()
 {
 }
 
-void BRepBuilderAPI_MakeShape::Delete()
-{}
-
-
 //=======================================================================
 //function : Build
 //purpose  : 
index acc31608c152ae2d39db487dc95bcec058cabc3c..7536e26b13c07a7ede997e5b851190f122b3f79e 100644 (file)
@@ -40,10 +40,6 @@ public:
 
   DEFINE_STANDARD_ALLOC
 
-  
-  Standard_EXPORT virtual void Delete() Standard_OVERRIDE;
-Standard_EXPORT virtual ~BRepBuilderAPI_MakeShape(){Delete() ; }
-  
   //! This is  called by  Shape().  It does  nothing but
   //! may be redefined.
   Standard_EXPORT virtual void Build();
index 051eac5f1e005868fdb20355deb19efb2f460569..ce51048866134409be1947ded7930c5445d00b39 100644 (file)
@@ -771,11 +771,11 @@ BRepClass3d_SolidExplorer::BRepClass3d_SolidExplorer(const TopoDS_Shape& S)
 }
 
 //=======================================================================
-//function : Delete
-//purpose  : 
+//function : ~BRepClass3d_SolidExplorer
+//purpose  :
 //=======================================================================
 
-void BRepClass3d_SolidExplorer::Delete()
+BRepClass3d_SolidExplorer::~BRepClass3d_SolidExplorer()
 {
  Destroy() ;
 }
index 8873a0718473e1311fca3a79f6ffe80803a7b790..8db650a8f326b3336068b768d27d4af3feda7e6f 100644 (file)
@@ -56,8 +56,7 @@ public:
   
   Standard_EXPORT BRepClass3d_SolidExplorer(const TopoDS_Shape& S);
   
-  Standard_EXPORT virtual void Delete();
-Standard_EXPORT virtual ~BRepClass3d_SolidExplorer(){Destroy() ; }
+  Standard_EXPORT virtual ~BRepClass3d_SolidExplorer();
   
   Standard_EXPORT void InitShape (const TopoDS_Shape& S);
   
index abb2225392f59dc532270b555c751826a94fa37f..a52bbe6fe2f482d8b48ee758752aa81041f0ea6c 100644 (file)
@@ -27,7 +27,7 @@ BRepLib_Command::BRepLib_Command() :
 {
 }
 
-void BRepLib_Command::Delete()
+BRepLib_Command::~BRepLib_Command()
 {}
 
 //=======================================================================
index 1acc1645e9f76b2c61f0ceaf491c42cf3f79e801..bf2a5ce1d90fd97aa03032cb05a72b86947fad4a 100644 (file)
@@ -40,9 +40,7 @@ public:
 
   DEFINE_STANDARD_ALLOC
 
-  
-  Standard_EXPORT virtual void Delete();
-Standard_EXPORT virtual ~BRepLib_Command(){Delete() ; }
+  Standard_EXPORT virtual ~BRepLib_Command();
   
   Standard_EXPORT Standard_Boolean IsDone() const;
   
index 274db3ca5bdf669784fb6e6c5e18ad6b1337c070..2cbf5e28eb3532932a197304d17f815dfd5c2cec 100644 (file)
@@ -374,9 +374,9 @@ Standard_Boolean BRepToIGES_BREntity::GetPCurveMode () const
 }
            
 //=======================================================================
-//function : Delete
+//function : ~BRepToIGES_BREntity
 //purpose  : 
 //=======================================================================
 
-void BRepToIGES_BREntity::Delete() 
+BRepToIGES_BREntity::~BRepToIGES_BREntity() 
 {} 
index 2fa9c25c10a3a81b6dd40e1f836fceaef64ce49a..eb6e0f96af46e1093080236bdcc4c2f277efca7b 100644 (file)
@@ -108,35 +108,14 @@ public:
   //! (value of parameter write.surfacecurve.mode)
   Standard_EXPORT Standard_Boolean GetPCurveMode() const;
   
-  Standard_EXPORT virtual void Delete();
-Standard_EXPORT virtual ~BRepToIGES_BREntity() { Delete(); }
-
-
-
-
-protected:
-
-
-
-
+  Standard_EXPORT virtual ~BRepToIGES_BREntity();
 
 private:
-
-
-
   Handle(IGESData_IGESModel) TheModel;
   Standard_Real TheUnitFactor;
   Standard_Boolean myConvSurface;
   Standard_Boolean myPCurveMode;
   Handle(Transfer_FinderProcess) TheMap;
-
-
 };
 
-
-
-
-
-
-
 #endif // _BRepToIGES_BREntity_HeaderFile
index 5e98faf1d2b0f637bddc839b34d20613feabd05e..5008ddffc12320bc278b59c7a89ba2bcf48a64e5 100644 (file)
@@ -79,11 +79,11 @@ BinTools_ShapeSet::BinTools_ShapeSet(const Standard_Boolean isWithTriangles)
 {}
 
 //=======================================================================
-//function : Delete
+//function : ~BinTools_ShapeSet
 //purpose  : 
 //=======================================================================
 
-void BinTools_ShapeSet::Delete()
+BinTools_ShapeSet::~BinTools_ShapeSet()
 {}
 
 //=======================================================================
index 6ee6c9b1e3747f52b1fa357bbb51b929987cedc8..61eea483d2c67c8128e2a662055848bbdf40da7b 100644 (file)
@@ -48,8 +48,7 @@ public:
   //! Parameter <isWithTriangles> is added for XML Persistence
   Standard_EXPORT BinTools_ShapeSet(const Standard_Boolean isWithTriangles = Standard_False);
   
-  Standard_EXPORT virtual void Delete();
-Standard_EXPORT virtual ~BinTools_ShapeSet(){Delete() ; }
+  Standard_EXPORT virtual ~BinTools_ShapeSet();
   
   //! Define if shape will be stored with triangles
   Standard_EXPORT void SetWithTriangles (const Standard_Boolean isWithTriangles);
index abb89f358c4a1b6a695c4da58627d8e32cbccd1a..d731826158ba122e463e016b5b04e8abb208202b 100644 (file)
@@ -70,11 +70,12 @@ CDM_Document::CDM_Document():
 
 
 //=======================================================================
-//function : Destroy
+//function : ~CDM_Document
 //purpose  : 
 //=======================================================================
 
-void CDM_Document::Destroy() {
+CDM_Document::~CDM_Document()
+{
   if(!myMetaData.IsNull()) myMetaData->UnsetDocument();
 }
 
index d34be1c98c0882ef9365ec5d4fbe80ed5c51ac7a..5cc70e5554aa21aa87dfc80a36fc002dcd973f67 100644 (file)
@@ -384,11 +384,7 @@ protected:
   
   Standard_EXPORT CDM_Document();
   
-  Standard_EXPORT virtual void Destroy();
-~CDM_Document()
-{
-  Destroy();
-}
+  Standard_EXPORT ~CDM_Document();
 
   Standard_Boolean myResourcesAreLoaded;
 
index eb7bba3f1b6d23af0a63cb7a1646f0e53b17a9a5..a3b63c1b8bb873a637e05eee6ba29fd7a24f2745 100644 (file)
@@ -167,7 +167,12 @@ static void CompleteDS(TopOpeBRepDS_DataStructure& DStr,
   }
 }
 
-void ChFi3d_Builder::Delete()
+//=======================================================================
+//function : ~ChFi3d_Builder
+//purpose  : 
+//=======================================================================
+
+ChFi3d_Builder::~ChFi3d_Builder()
 {}
 
 //=======================================================================
index 79082e6f0126d39d8258cf43a8c295dd7088ff58..6af9c736207f50435d14463875b2b8e700fa05a5 100644 (file)
@@ -80,9 +80,7 @@ public:
 
   DEFINE_STANDARD_ALLOC
 
-  
-  Standard_EXPORT virtual void Delete();
-Standard_EXPORT virtual ~ChFi3d_Builder(){Delete() ; }
+  Standard_EXPORT virtual ~ChFi3d_Builder();
   
   Standard_EXPORT void SetParams (const Standard_Real Tang, const Standard_Real Tesp, const Standard_Real T2d, const Standard_Real TApp3d, const Standard_Real TolApp2d, const Standard_Real Fleche);
   
index 1793597ac6a9d3e4045fc559b6f888e907e04bbd..5dfd3778ad6ec745acc863e0a863be0d7f907c2e 100644 (file)
@@ -78,13 +78,8 @@ public:
   Standard_EXPORT Cocoa_Window (NSView* theViewNS);
 #endif
 
-  //! Destroies the Window and all resourses attached to it
-  Standard_EXPORT virtual  void Destroy();
-
-  ~Cocoa_Window()
-  {
-    Destroy();
-  }
+  //! Destroys the Window and all resourses attached to it
+  Standard_EXPORT ~Cocoa_Window();
 
   //! Opens the window <me>
   Standard_EXPORT virtual void Map() const Standard_OVERRIDE;
index 168857e7f5eb37405c5cad3ed3c13d1d84f92566..69cbeb7ea0998d0c2bd0a65be5e675d018d5223d 100644 (file)
@@ -143,10 +143,10 @@ Cocoa_Window::Cocoa_Window (NSView* theViewNS)
 }
 
 // =======================================================================
-// function : Destroy
+// function : ~Cocoa_Window
 // purpose  :
 // =======================================================================
-void Cocoa_Window::Destroy()
+Cocoa_Window::~Cocoa_Window()
 {
 #if !defined(HAVE_OBJC_ARC)
   Cocoa_LocalPool aLocalPool;
index 3f52ac8f59efed3132b4ed4f7f2d092b6b944570..259c67d19a7e3986a582db0cda46c5710e7cfe87 100644 (file)
@@ -117,7 +117,7 @@ FairCurve_Batten::FairCurve_Batten(const gp_Pnt2d& P1,
                          Flatknots->ChangeArray1());     
 }
 // ==================================================================
-void FairCurve_Batten::Delete()
+FairCurve_Batten::~FairCurve_Batten()
 {}
 // ==================================================================
 void FairCurve_Batten::Angles(const gp_Pnt2d& P1, 
index e3719b9ebb66285187afe883ace90b1e9777efa7..c873073d2967e3f68f7b325951fc296a9f09609e 100644 (file)
@@ -69,8 +69,7 @@ public:
   //! gp_Pnt2d::IsEqual tests to see if this is the case.
   Standard_EXPORT FairCurve_Batten(const gp_Pnt2d& P1, const gp_Pnt2d& P2, const Standard_Real Height, const Standard_Real Slope = 0);
   
-  Standard_EXPORT virtual void Delete();
-Standard_EXPORT virtual ~FairCurve_Batten(){Delete();}
+  Standard_EXPORT virtual ~FairCurve_Batten();
   
   //! Freesliding is initialized with the default setting false.
   //! When Freesliding is set to true and, as a result, sliding
index 77afe37046ac83f0d3087b3a2ad46bf9e0ba8d59..443c510ee7b491626744b5b0ef246b0551f70066 100644 (file)
@@ -32,9 +32,3 @@ IMPLEMENT_STANDARD_RTTIEXT(Graphic3d_DataStructureManager,MMgt_TShared)
 //-Constructors
 Graphic3d_DataStructureManager::Graphic3d_DataStructureManager () {
 }
-
-//-Destructors
-
-void Graphic3d_DataStructureManager::Destroy () {
-
-}
index f2e1025605513582ce4753eac3658c1a63334c1b..39cf35ee751763d4b4781fc89af8565ecbeaa72a 100644 (file)
@@ -34,16 +34,6 @@ class Graphic3d_DataStructureManager : public MMgt_TShared
 
 public:
 
-  
-  //! Deletes the manager <me>.
-  Standard_EXPORT virtual void Destroy();
-~Graphic3d_DataStructureManager()
-{
-  Destroy();
-}
-
-
-
   DEFINE_STANDARD_RTTIEXT(Graphic3d_DataStructureManager,MMgt_TShared)
 
 protected:
index a32663511a751e73853ebb332fea98b22fd51457..0ecb12de8d73bcdde0166f246208079f6764c1d2 100644 (file)
@@ -98,10 +98,10 @@ Graphic3d_Structure::Graphic3d_Structure (const Handle(Graphic3d_StructureManage
 }
 
 //=============================================================================
-//function : Destroy
+//function : ~Graphic3d_Structure
 //purpose  :
 //=============================================================================
-void Graphic3d_Structure::Destroy()
+Graphic3d_Structure::~Graphic3d_Structure()
 {
   // as myFirstStructureManager can be already destroyed,
   // avoid attempts to access it
index 2fdc75f6e9b37636d14044d52a5df1bd4405d941..f3d869180e4aa335c366196653785abaf9ebf5b9 100644 (file)
@@ -99,11 +99,7 @@ public:
   
   //! Suppresses the structure <me>.
   //! It will be erased at the next screen update.
-  Standard_EXPORT virtual void Destroy();
-~Graphic3d_Structure()
-{
-  Destroy();
-}
+  Standard_EXPORT ~Graphic3d_Structure();
   
   //! Displays the structure <me> in all the views of the visualiser.
   Standard_EXPORT virtual void Display();
index d858c23e1b56977a10c90043ea34ec32af4551e6..de34df4ea968883c48e032c9b8e69b6b3e89144f 100644 (file)
@@ -101,8 +101,8 @@ Standard_Integer Limit  = Graphic3d_StructureManager::Limit ();
 
 //-Destructors
 
-void Graphic3d_StructureManager::Destroy () {
-
+Graphic3d_StructureManager::~Graphic3d_StructureManager ()
+{
         myDisplayedStructure.Clear ();
         myHighlightedStructure.Clear ();
         myDefinedViews.Clear();
index 1892bf86c225549d33cbedefa9051d40a2c02de2..946ad39e3e78dc554144d156d95194ed93d069b4 100644 (file)
@@ -70,11 +70,7 @@ public:
   Standard_EXPORT Graphic3d_StructureManager (const Handle(Graphic3d_GraphicDriver)& theDriver);
 
   //! Deletes the manager <me>.
-  Standard_EXPORT virtual void Destroy();
-~Graphic3d_StructureManager()
-{
-  Destroy();
-}
+  Standard_EXPORT ~Graphic3d_StructureManager();
 
   //! Modifies the default attributes for lines
   //! in the visualiser.
index 37f698827ce18fa3da236f6c2c8d14bb06314d29..cf430b620c1083e3627a5b8da84997ba7b5bceb2 100644 (file)
@@ -253,9 +253,9 @@ IFGraph_SubPartsIterator::IFGraph_SubPartsIterator
 }
 
 //=======================================================================
-//function : Delete
+//function : ~IFGraph_SubPartsIterator
 //purpose  : 
 //=======================================================================
 
-void IFGraph_SubPartsIterator::Delete() 
+IFGraph_SubPartsIterator::~IFGraph_SubPartsIterator() 
 {} 
index a6f6e9559f624932bd3fd11e7e4d27f851200207..cc4f2430450bcb8ab4688997587413e2445d368c 100644 (file)
@@ -150,11 +150,7 @@ public:
   //! Error : same as above (end of iteration)
   Standard_EXPORT Interface_EntityIterator Entities() const;
   
-  Standard_EXPORT virtual void Delete();
-Standard_EXPORT virtual ~IFGraph_SubPartsIterator() { Delete(); }
-
-
-
+  Standard_EXPORT virtual ~IFGraph_SubPartsIterator();
 
 protected:
 
index e04f9a4b215ebe3b9b06d6e74ff602baea937bd3..4bf98b4561835f0bcd5126870fcb5f7a39afc74c 100644 (file)
@@ -150,5 +150,11 @@ Interface_EntityIterator::Interface_EntityIterator ()
   return thelist;
 }
 
-    void  Interface_EntityIterator::Destroy ()
+void  Interface_EntityIterator::Destroy ()
       {  thecurr.Nullify();  }  // redevient vide !
+
+Interface_EntityIterator::~Interface_EntityIterator()
+{
+  Destroy();
+}
+
index 3204ab502f35936b957e57cd10b564ba1c57eeb2..48beaf7ad3b367b2aea6950ea2411001aaab6699 100644 (file)
@@ -90,11 +90,10 @@ public:
   Standard_EXPORT Handle(TColStd_HSequenceOfTransient) Content() const;
   
   //! Clears data of iteration
-  Standard_EXPORT virtual void Destroy();
-Standard_EXPORT virtual ~Interface_EntityIterator() { Destroy();}
-
-
+  Standard_EXPORT void Destroy();
 
+  //! Destructor
+  Standard_EXPORT virtual ~Interface_EntityIterator();
 
 protected:
 
index 7f0edbe4763b6aff3167d9ab992c57bba84a30b3..1009559138c4e1715ed3ac4fba45f69eb812d2bb 100644 (file)
@@ -566,11 +566,11 @@ Handle(Standard_Transient) Interface_FileReaderTool::LoadedEntity
 
 
 //=======================================================================
-//function : Destroy
+//function : ~Interface_FileReaderTool
 //purpose  : 
 //=======================================================================
 
-void Interface_FileReaderTool::Destroy()
+Interface_FileReaderTool::~Interface_FileReaderTool()
 {}
      
 void Interface_FileReaderTool::Clear()
index f1a220d9cfec0d8c7e286854fce595e94ea1fc80..216bb4aec986a11d7849f157df18c95605a446fd 100644 (file)
@@ -175,8 +175,7 @@ public:
   //! else (in case of syntactic fail)
   Standard_EXPORT virtual Standard_Boolean AnalyseRecord (const Standard_Integer num, const Handle(Standard_Transient)& anent, Handle(Interface_Check)& acheck) = 0;
   
-  Standard_EXPORT virtual void Destroy();
-Standard_EXPORT virtual ~Interface_FileReaderTool() { Destroy(); }
+  Standard_EXPORT virtual ~Interface_FileReaderTool();
   
   //! Ends file reading after reading all the entities
   //! default is doing nothing; redefinable as necessary
index c4c7a32ee719c970b28beb1a3329e229543c7867..1027721d4bf3c9a7e89eddf7805ac2f6be0d4623 100644 (file)
@@ -133,10 +133,6 @@ MeshVS_Mesh::MeshVS_Mesh (const Standard_Boolean theIsAllowOverlapped )
   myHilightDrawer->SetDouble  ( MeshVS_DA_MarkerScale, 2.0 );
 }
 
-void MeshVS_Mesh::Destroy()
-{
-}
-
 //================================================================
 // Function : Compute
 // Purpose  :
index e7261254578111fbd8fef2eab2507d21c203f686..2561ccf717e0da4d6f55be15902617a1733dd98c 100644 (file)
@@ -53,12 +53,6 @@ public:
   //! Its value is stored in drawer
   Standard_EXPORT MeshVS_Mesh(const Standard_Boolean theIsAllowOverlapped = Standard_False);
   
-  Standard_EXPORT virtual void Destroy();
-~MeshVS_Mesh()
-{
-  Destroy();
-}
-  
   //! Computes presentation using builders added to sequence. Each builder computes
   //! own part of mesh presentation according to its type.
   Standard_EXPORT virtual void Compute (const Handle(PrsMgr_PresentationManager3d)& PM, const Handle(Prs3d_Presentation)& Prs, const Standard_Integer DisplayMode) Standard_OVERRIDE;
index 83a4e6faddd23e036fc3b9e931690d5b7a9e3a40..df8b7bed6ded3403f1a5e95491b32a309b575c6d 100644 (file)
@@ -56,9 +56,9 @@ MoniTool_OptValue::MoniTool_OptValue (const Standard_CString opt)
       {  val = theval;  }
 
 //=======================================================================
-//function : Delete
+//function : ~MoniTool_OptValue
 //purpose  : 
 //=======================================================================
 
-void MoniTool_OptValue::Delete() 
+MoniTool_OptValue::~MoniTool_OptValue() 
 {} 
index 9afdba1ed2f8da52659189c2445fdeef791114d9..f1e075525f3078ac1adf9387a38d444c0d1a3be3 100644 (file)
@@ -95,32 +95,11 @@ public:
   //! Warning : type is not controlled
   Standard_EXPORT void Value (Handle(Standard_Transient)& val) const;
   
-  Standard_EXPORT virtual void Delete();
-Standard_EXPORT virtual ~MoniTool_OptValue() { Delete(); }
-
-
-
-
-protected:
-
-
-
-
+  Standard_EXPORT virtual ~MoniTool_OptValue();
 
 private:
-
-
-
   TCollection_AsciiString theopt;
   Handle(Standard_Transient) theval;
-
-
 };
 
-
-
-
-
-
-
 #endif // _MoniTool_OptValue_HeaderFile
index c3e735d68b7b2fe179c1155a73aa33aa3bef483e..cfabc1d3ab0e719511384894941d7cfc73503d10 100644 (file)
@@ -44,8 +44,7 @@ public:
     MoniTool_TimerSentry(const Handle(MoniTool_Timer)& timer);
   
   //! Destructor stops the associated timer
-    void Destroy();
-Standard_EXPORT ~MoniTool_TimerSentry () { Destroy(); }
+    ~MoniTool_TimerSentry ();
   
     Handle(MoniTool_Timer) Timer() const;
   
index 0d3f6c42b60aaef80fe0b3079994520818871f67..df40366d2b1e5256dadfbc77d35c070871f1dd93 100644 (file)
@@ -36,11 +36,11 @@ inline MoniTool_TimerSentry::MoniTool_TimerSentry (const Handle(MoniTool_Timer)&
 }
 
 //=======================================================================
-//function : Destroy
+//function : Destructor
 //purpose  : make stop for corresponding timer before destroying
 //=======================================================================
 
-inline void MoniTool_TimerSentry::Destroy() 
+inline MoniTool_TimerSentry::~MoniTool_TimerSentry() 
 {
   if ( ! myTimer.IsNull() ) myTimer->Stop();
 }
index 58e66845fbf9264ddae0d831b4dc3fe660882b5c..667302d8adaf4ae6b51ab0f654f68d2f72e23f84 100644 (file)
@@ -246,7 +246,12 @@ void ProjLib_ProjectOnSurface::Load(const Handle(Adaptor3d_HCurve)& C,
   }
 }
 
-void ProjLib_ProjectOnSurface::Delete()
+//=======================================================================
+//function : ~ProjLib_ProjectOnSurface
+//purpose  : 
+//=======================================================================
+
+ProjLib_ProjectOnSurface::~ProjLib_ProjectOnSurface()
 {}
 
 //=======================================================================
index 9d5accde3373ccf18617f770a4fd33261bf19bf4..a88db5fa1ffb05e01abb421fcb43d95ccd98b0a9 100644 (file)
@@ -43,8 +43,7 @@ public:
   //! Create a projector normaly to the surface <S>.
   Standard_EXPORT ProjLib_ProjectOnSurface(const Handle(Adaptor3d_HSurface)& S);
   
-  Standard_EXPORT virtual void Delete();
-Standard_EXPORT virtual ~ProjLib_ProjectOnSurface(){Delete() ; }
+  Standard_EXPORT virtual ~ProjLib_ProjectOnSurface();
   
   //! Set the Surface to <S>.
   //! To compute the projection, you have to Load the Curve.
index e585398e7daf04cacba6c5b79d5b93fbde5669b8..22ee0e2fe9a3377f80a98fcaf39548728730c3ee 100644 (file)
@@ -389,10 +389,10 @@ Handle(Prs3d_Projector) PrsMgr_Presentation::Projector (const Handle(Graphic3d_D
 }
 
 //=======================================================================
-//function : Destroy
+//function : ~PrsMgr_Presentation
 //purpose  :
 //=======================================================================
-void PrsMgr_Presentation::Destroy()
+PrsMgr_Presentation::~PrsMgr_Presentation()
 {
   Erase();
 }
index e04bb1627c02733f809cc2b71fa70d62bdfbd532..e93f122a3a3dd2fa1239fce9eb05067226f082fd 100644 (file)
@@ -49,11 +49,7 @@ public:
 
   
   //! Destructor
-  Standard_EXPORT virtual void Destroy();
-~PrsMgr_Presentation()
-{
-  Destroy();
-}
+  Standard_EXPORT ~PrsMgr_Presentation();
   
     const Handle(Prs3d_Presentation)& Presentation() const;
   
index d3890dec9490272f6ca30f322d7b1fac4a9033d7..8b5e24ff41e12e63e7023b441abf3cffe2dc6f6f 100644 (file)
@@ -295,7 +295,7 @@ Standard_Boolean QANewModTopOpe_Limitation::IsDeleted(const TopoDS_Shape& S)
 
 }
 
-void QANewModTopOpe_Limitation::Delete()
+QANewModTopOpe_Limitation::~QANewModTopOpe_Limitation()
 {
   delete myCut;
   delete myCommon;
index ab28bd7971c374e1a77f577fbcdaec56dd53ce89..1aef94f1b6152e09fdc80a66a2189707eaebdf3b 100644 (file)
@@ -81,17 +81,7 @@ public:
   
   Standard_EXPORT virtual Standard_Boolean IsDeleted (const TopoDS_Shape& S) Standard_OVERRIDE;
   
-  Standard_EXPORT virtual void Delete() Standard_OVERRIDE;
-Standard_EXPORT  ~QANewModTopOpe_Limitation()  {Delete();}
-
-
-
-
-protected:
-
-
-
-
+  Standard_EXPORT  ~QANewModTopOpe_Limitation();
 
 private:
 
index ff18adbf22dea5db85de4c05904be34a988496a6..31e5e2a45e198dea9f41424dbf10958aa13c74e1 100644 (file)
@@ -80,11 +80,11 @@ void ShapeUpgrade_ShapeDivide::Init(const TopoDS_Shape &S)
 }
 
 //=======================================================================
-//function : Delete
+//function : ~ShapeUpgrade_ShapeDivide
 //purpose  : 
 //=======================================================================
 
-void ShapeUpgrade_ShapeDivide::Delete()
+ShapeUpgrade_ShapeDivide::~ShapeUpgrade_ShapeDivide()
 {}
 
 
index da284647eba24f1106a6c6f4cae8fb334c73cc62..7e6fc37be6fe3630945fe02b7bbe905d48c95699 100644 (file)
@@ -50,8 +50,7 @@ public:
   //! Initialize by a Shape.
   Standard_EXPORT void Init (const TopoDS_Shape& S);
   
-  Standard_EXPORT virtual void Delete();
-Standard_EXPORT virtual ~ShapeUpgrade_ShapeDivide(){Delete();}
+  Standard_EXPORT virtual ~ShapeUpgrade_ShapeDivide();
   
   //! Defines the spatial precision used for splitting
   Standard_EXPORT void SetPrecision (const Standard_Real Prec);
index 0a93bd3aa7df6171cdef81dac7f5bc51d3d856bd..ec78dd67a999004407592a79823bea03c6e3baf2 100644 (file)
 
 static StepData_Field nulfild;
 
+StepData_FieldList::~StepData_FieldList()
+{
+}
+
 StepData_FieldList::StepData_FieldList  ()    {  }
 
 Standard_Integer  StepData_FieldList::NbFields () const
index 94e6d90c1fc392e0d3832b01d460c2bb1a153057..3371e87f75ef53d25f6c232beae94bede8f35b6f 100644 (file)
@@ -36,6 +36,8 @@ public:
 
   DEFINE_STANDARD_ALLOC
 
+  //! Destructor is virtual
+  Standard_EXPORT virtual ~StepData_FieldList();
   
   //! Creates a FieldList of 0 Field
   Standard_EXPORT StepData_FieldList();
@@ -52,28 +54,6 @@ public:
   
   //! Fills an iterator with the entities shared by <me>
   Standard_EXPORT void FillShared (Interface_EntityIterator& iter) const;
-
-
-
-
-protected:
-
-
-
-
-
-private:
-
-
-
-
-
 };
 
-
-
-
-
-
-
 #endif // _StepData_FieldList_HeaderFile
index 7c8dd040a92f404879674e007d1acfc576657442..e3a8b3d9d8e37473750a56ad9b5da3a4397bf8ad 100644 (file)
@@ -32,6 +32,3 @@ StepData_Field&  StepData_FieldList1::CField (const Standard_Integer num)
   if (num != 1) Standard_OutOfRange::Raise("StepData_FieldList1 : CField");
   return thefield;
 }
-
-void StepData_FieldList1::Destroy () {}
-     
index db8e64d5ed8dea00de22e1b4d6c1c24da99e7dc5..9b88156f09207cf122950ccd70b730a8129f798b 100644 (file)
@@ -49,18 +49,6 @@ public:
   //! modify its content
   Standard_EXPORT virtual StepData_Field& CField (const Standard_Integer num) Standard_OVERRIDE;
   
-  Standard_EXPORT virtual void Destroy();
-Standard_EXPORT virtual ~StepData_FieldList1() { Destroy(); }
-
-
-
-
-protected:
-
-
-
-
-
 private:
 
 
index bf8eda0ac06cd677487e9b12f362781e37e159ce..30efabd57d40f2af5f7605ac57bac193a115d397 100644 (file)
@@ -39,6 +39,3 @@ StepData_Field&  StepData_FieldListD::CField (const Standard_Integer num)
   if (thefields.IsNull()) Standard_OutOfRange::Raise("StepData_FieldListD::Field");
   return thefields->ChangeValue(num);
 }
-
-void StepData_FieldListD::Destroy () {}
-     
index 2b69fa92ed74df145b035fac699ac1cc262c0e0c..eda422fe38178f080cda59e484f885d1ca77b3f6 100644 (file)
@@ -53,18 +53,6 @@ public:
   //! Returns the field n0 <num> between 1 and NbFields, in order to
   //! modify its content
   Standard_EXPORT virtual StepData_Field& CField (const Standard_Integer num) Standard_OVERRIDE;
-  
-  Standard_EXPORT virtual void Destroy();
-Standard_EXPORT virtual ~StepData_FieldListD() { Destroy(); }
-
-
-
-
-protected:
-
-
-
-
 
 private:
 
index fb6f76cc7dca839ac8cdff0c0b2ebc769fecc9e9..d3f185ee4b96e29962c907a1bfc0348d54ddb822 100644 (file)
@@ -31,6 +31,3 @@ StepData_Field&  StepData_FieldListN::CField (const Standard_Integer num)
 {
   return thefields.ChangeValue(num);
 }
-
-void StepData_FieldListN::Destroy() {}
-     
index 7d1239b5b38e712faca68e50b28e55c0025b4a3a..691f75db3d8ac70d20a83328980f75eecf259b87 100644 (file)
@@ -50,18 +50,6 @@ public:
   //! Returns the field n0 <num> between 1 and NbFields, in order to
   //! modify its content
   Standard_EXPORT virtual StepData_Field& CField (const Standard_Integer num) Standard_OVERRIDE;
-  
-  Standard_EXPORT virtual void Destroy();
-Standard_EXPORT virtual ~StepData_FieldListN() { Destroy(); }
-
-
-
-
-protected:
-
-
-
-
 
 private:
 
index aaa66bd5cb42ed5480ca1c26da42682fcd001dcf..db55e4bcbd6f238bf92f813695e2aabe80662e9f 100644 (file)
@@ -188,4 +188,5 @@ Standard_Real  StepData_SelectType::Real () const
   thevalue = sm;
 }
 
-void StepData_SelectType::Destroy(){}
+StepData_SelectType::~StepData_SelectType()
+{}
index f70db763f6a80bd079fbcb09490a071a29890da9..05040ef80abb3eea89e297267d55895e6e73a1ce 100644 (file)
@@ -157,17 +157,7 @@ public:
   
   Standard_EXPORT void SetReal (const Standard_Real val, const Standard_CString name = "");
   
-  Standard_EXPORT virtual void Destroy();
-Standard_EXPORT virtual ~StepData_SelectType() { Destroy(); }
-
-
-
-
-protected:
-
-
-
-
+  Standard_EXPORT virtual ~StepData_SelectType();
 
 private:
 
index 76a76f791eed73fffd238241488eea5298a4903c..ee0bc8791a23f6805f75580ba5e62b8b5d1e4f26 100644 (file)
@@ -24,7 +24,8 @@
 Storage_BaseDriver::Storage_BaseDriver() : myOpenMode(Storage_VSNone)
 {
 }
-void Storage_BaseDriver::Delete()
+
+Storage_BaseDriver::~Storage_BaseDriver()
 {}
 
 TCollection_AsciiString Storage_BaseDriver::ReadMagicNumber (Standard_IStream& theIStream)
index 8541ddc73e6728be76111c32da5915339aea8441..a6f345b144a2cfc15e967536e5f2f45b20db26bf 100644 (file)
@@ -53,9 +53,7 @@ public:
 
   DEFINE_STANDARD_ALLOC
 
-  
-  Standard_EXPORT void Delete();
-Standard_EXPORT virtual ~Storage_BaseDriver(){Delete();}
+  Standard_EXPORT virtual ~Storage_BaseDriver();
   
   Standard_EXPORT virtual Storage_Error Open (const TCollection_AsciiString& aName, const Storage_OpenMode aMode) = 0;
   
index c17b884d07bc16920dafac4414d01ea6329371c7..ee17c44b2d15d78c6a6ab4cd846663c1fc8c89ba 100644 (file)
@@ -100,10 +100,10 @@ TopOpeBRep_DSFiller::TopOpeBRep_DSFiller()
 
 //modified by NIZNHY-PKV Mon Dec 16 11:12:38 2002 f
 //=======================================================================
-//function : Destroy
-//purpose  : alias ~TopOpeBRep_DSFiller
+//function : ~TopOpeBRep_DSFiller
+//purpose  : 
 //=======================================================================
-void TopOpeBRep_DSFiller::Destroy() 
+TopOpeBRep_DSFiller::~TopOpeBRep_DSFiller() 
 {
   if (myPShapeClassifier) {
     delete myPShapeClassifier;
index 72f63b531cabab61617642cc62af74863b201834..7f0dfffc8e2e9bf06f4d91239fd935141fe3f044 100644 (file)
@@ -58,8 +58,7 @@ public:
   
   Standard_EXPORT TopOpeBRep_DSFiller();
   
-  Standard_EXPORT void Destroy();
-Standard_EXPORT ~TopOpeBRep_DSFiller() {Destroy();}
+  Standard_EXPORT ~TopOpeBRep_DSFiller();
   
   //! return field myPShapeClassifier.
   //! set field myPShapeClassifier.
index d5cce79a1b85371c19d6995da2d5091898e92736..79ed2b09b61eb4fd2c3847d7e5a5986b4c995049 100644 (file)
@@ -108,7 +108,7 @@ TopOpeBRep_EdgesIntersector::TopOpeBRep_EdgesIntersector()
   myselectkeep = Standard_True;
 }
 
-void TopOpeBRep_EdgesIntersector::Delete()
+TopOpeBRep_EdgesIntersector::~TopOpeBRep_EdgesIntersector()
 {}
 
 //=======================================================================
index cba41622f41f5d45d3bc50d0b5cb9a359d8286cb..c79d8c6a3ba78f7e5d0ac5b8ed478954874578d9 100644 (file)
@@ -60,8 +60,7 @@ public:
   
   Standard_EXPORT TopOpeBRep_EdgesIntersector();
   
-  Standard_EXPORT virtual void Delete();
-Standard_EXPORT virtual ~TopOpeBRep_EdgesIntersector(){Delete() ; }
+  Standard_EXPORT virtual ~TopOpeBRep_EdgesIntersector();
   
   Standard_EXPORT void SetFaces (const TopoDS_Shape& F1, const TopoDS_Shape& F2);
   
index 76d5467df5805b943f4cc5003dae7d7cffd6548a..b92c4715810ca0c3c92b8ae271f70054222fcd61 100644 (file)
@@ -55,7 +55,7 @@ myUNKNOWNRaise(Standard_False) // no raise if UNKNOWN state found
   InitAreaBuilder(LS,LC,ForceClass);
 }
 
-void TopOpeBRepBuild_AreaBuilder::Delete()
+TopOpeBRepBuild_AreaBuilder::~TopOpeBRepBuild_AreaBuilder()
 {}
 
 //=======================================================================
index 0d2680dc176d3b7a452540e60e3df95a5d6776b4..c591b3452c996c60e74babdd715ad1f2c91ed275 100644 (file)
@@ -66,8 +66,7 @@ public:
   //! the shapes described by <LS> using the classifier <LC>.
   Standard_EXPORT TopOpeBRepBuild_AreaBuilder(TopOpeBRepBuild_LoopSet& LS, TopOpeBRepBuild_LoopClassifier& LC, const Standard_Boolean ForceClass = Standard_False);
   
-  Standard_EXPORT virtual void Delete();
-Standard_EXPORT virtual ~TopOpeBRepBuild_AreaBuilder(){Delete() ; }
+  Standard_EXPORT virtual ~TopOpeBRepBuild_AreaBuilder();
   
   //! Sets a AreaBuilder to find the areas on
   //! the shapes described by <LS> using the classifier <LC>.
index fc83cacf0f6a2cd15b65642aa6aedbd4d1e780a1..209441cc3fa2ee37b88fa9619012c65c84b780f4 100644 (file)
@@ -99,10 +99,10 @@ TopOpeBRepBuild_Builder::TopOpeBRepBuild_Builder(const TopOpeBRepDS_BuildTool& B
 
 //modified by NIZHNY-MZV  Sat May  6 10:04:49 2000
 //=======================================================================
-//function : Destroy
+//function : ~TopOpeBRepBuild_Builder
 //purpose  : virtual destructor
 //=======================================================================
-void TopOpeBRepBuild_Builder::Destroy()
+TopOpeBRepBuild_Builder::~TopOpeBRepBuild_Builder()
 {
 } 
 
index 047ef141372e08aa3098c984f1b615c385a7bad2..393453dc0925a17cd38709f88a380e239262fadf 100644 (file)
@@ -89,8 +89,7 @@ public:
   
   Standard_EXPORT TopOpeBRepBuild_Builder(const TopOpeBRepDS_BuildTool& BT);
   
-  Standard_EXPORT virtual void Destroy();
-Standard_EXPORT virtual ~TopOpeBRepBuild_Builder()  {  Destroy() ; }
+  Standard_EXPORT virtual ~TopOpeBRepBuild_Builder();
   
   Standard_EXPORT TopOpeBRepDS_BuildTool& ChangeBuildTool();
   
index 0bb15b5c54ffb998ef015d0af8ad57c040151095..ec2183077ebcea2203cf35d566a977a574886158 100644 (file)
@@ -58,8 +58,7 @@ public:
   
   Standard_EXPORT TopOpeBRepBuild_Builder1(const TopOpeBRepDS_BuildTool& BT);
   
-  Standard_EXPORT virtual void Destroy() Standard_OVERRIDE;
-Standard_EXPORT virtual ~TopOpeBRepBuild_Builder1()  {  Destroy() ; }
+  Standard_EXPORT virtual ~TopOpeBRepBuild_Builder1();
   
   //! Removes all splits and merges already performed.
   //! Does NOT clear the handled DS  (except  ShapeWithStatesMaps).
index 856017194b4cb0bb79c653c258b0bd094807cf54..a23853e3ec878058c593a7b95381160ccf5972ab 100644 (file)
@@ -87,10 +87,10 @@ extern Standard_Boolean GLOBAL_faces2d;
 
 //modified by NIZNHY-PKV Mon Dec 16 11:38:55 2002 f
 //=======================================================================
-//function : Destroy
+//function : ~TopOpeBRepBuild_Builder1
 //purpose  : 
 //=======================================================================
-void TopOpeBRepBuild_Builder1::Destroy()
+TopOpeBRepBuild_Builder1::~TopOpeBRepBuild_Builder1()
 {
   processedEdges.Clear();
   theUsedVertexMap.Clear();
index 13c6d238f92ac26b6ba26cbfc012eb6164e468e3..0a6aca8739011b9ddfd0208619e1553c80cb03b0 100644 (file)
@@ -18,5 +18,5 @@
 #include <TopOpeBRepBuild_Loop.hxx>
 #include <TopOpeBRepBuild_LoopClassifier.hxx>
 
-void TopOpeBRepBuild_LoopClassifier::Delete()
+TopOpeBRepBuild_LoopClassifier::~TopOpeBRepBuild_LoopClassifier()
 {}
index 04af148cbfb8ec573e1b51390f28cdac439775a0..733cdbcd76fdeb979d4767acbc164c088e4f861b 100644 (file)
@@ -32,9 +32,7 @@ public:
 
   DEFINE_STANDARD_ALLOC
 
-  
-  Standard_EXPORT virtual void Delete();
-Standard_EXPORT virtual ~TopOpeBRepBuild_LoopClassifier(){Delete() ; }
+  Standard_EXPORT virtual ~TopOpeBRepBuild_LoopClassifier();
   
   //! Returns the state of loop <L1> compared with loop <L2>.
   Standard_EXPORT virtual TopAbs_State Compare (const Handle(TopOpeBRepBuild_Loop)& L1, const Handle(TopOpeBRepBuild_Loop)& L2) = 0;
index 67715df8e2130d04c41a120d75cdcc621c2d6f12..b6cec72f41bd1340e277cbd5ffc8c60b598f0639 100644 (file)
@@ -27,7 +27,7 @@ myLoopIndex(1), myNbLoop(0)
 {
 }
 
-void TopOpeBRepBuild_LoopSet::Delete()
+TopOpeBRepBuild_LoopSet::~TopOpeBRepBuild_LoopSet()
 {}
 
 //=======================================================================
index a6890dc7bf004f729ae6fb8b9085c4b9fd72ff6d..c2c933327f5e83ca1ea8b6df4d86192452d24383 100644 (file)
@@ -38,8 +38,7 @@ public:
   
   Standard_EXPORT TopOpeBRepBuild_LoopSet();
   
-  Standard_EXPORT virtual void Delete();
-Standard_EXPORT virtual ~TopOpeBRepBuild_LoopSet(){Delete() ; }
+  Standard_EXPORT virtual ~TopOpeBRepBuild_LoopSet();
   
   Standard_EXPORT TopOpeBRepBuild_ListOfLoop& ChangeListOfLoop();
   
index 381fb0c41cfd0555cf92b5d758f81443a410a3ad..4d75721cc501965617e7a5ec4a4447f1f7a7310a 100644 (file)
@@ -56,7 +56,7 @@ TopOpeBRepBuild_ShapeSet::TopOpeBRepBuild_ShapeSet(const TopAbs_ShapeEnum SubSha
   myCheckShape = Standard_False; // temporary NYI
 }
 
-void TopOpeBRepBuild_ShapeSet::Delete()
+TopOpeBRepBuild_ShapeSet::~TopOpeBRepBuild_ShapeSet()
 {}
 
 //=======================================================================
index d0f5a4ec795490521a7668eea87001ef3dc9fe4c..331563b6fd52da64295b63577d37106fc22e7e95 100644 (file)
@@ -70,8 +70,7 @@ public:
   //! <checkshape>:check (or not) the shapes, startelements, elements added.
   Standard_EXPORT TopOpeBRepBuild_ShapeSet(const TopAbs_ShapeEnum SubShapeType, const Standard_Boolean checkshape = Standard_True);
   
-  Standard_EXPORT virtual void Delete();
-Standard_EXPORT virtual ~TopOpeBRepBuild_ShapeSet(){Delete() ; }
+  Standard_EXPORT virtual ~TopOpeBRepBuild_ShapeSet();
   
   //! Adds <S> to the list of shapes. (wires or shells).
   Standard_EXPORT virtual void AddShape (const TopoDS_Shape& S);
index fbd65e2b6358500b75ee5b62216152df48ba399d..9e35698cb9f0ad328bc335010b9b94b9f8036c0d 100644 (file)
@@ -60,10 +60,10 @@ TopOpeBRepTool_BoxSort::TopOpeBRepTool_BoxSort(const MTOhbt& HBT)
 
 //modified by NIZNHY-PKV Mon Dec 16 10:26:00 2002 f
 //=======================================================================
-//function : Destroy
-//purpose  : alias ~TopOpeBRepTool_BoxSort
+//function : ~TopOpeBRepTool_BoxSort
+//purpose  : 
 //=======================================================================
-void TopOpeBRepTool_BoxSort::Destroy()
+TopOpeBRepTool_BoxSort::~TopOpeBRepTool_BoxSort()
 {
   if (!myHBT.IsNull()) {
     myHBT->Clear();
index 08eb30507a4cd821e839e4eeffb61f957fabaf31..043cb7995ab80e64da9ca2541d46f66c0a3fc404 100644 (file)
@@ -72,17 +72,7 @@ public:
   
   Standard_EXPORT const Bnd_Box& Box (const TopoDS_Shape& S) const;
   
-  Standard_EXPORT void Destroy();
-Standard_EXPORT ~TopOpeBRepTool_BoxSort() {Destroy();}
-
-
-
-
-protected:
-
-
-
-
+  Standard_EXPORT ~TopOpeBRepTool_BoxSort();
 
 private:
 
index 412b8aacf453d79ab7de2b939cfcafc63d559122..0ace45e00b9f89dc41007ed8ffa66ac3c6881997 100644 (file)
@@ -32,10 +32,10 @@ TopOpeBRepTool_SolidClassifier::TopOpeBRepTool_SolidClassifier()
 
 //modified by NIZNHY-PKV Mon Dec 16 10:39:00 2002 f
 //=======================================================================
-//function : Destroy
-//purpose  : alias ~TopOpeBRepTool_SolidClassifier
+//function : ~TopOpeBRepTool_SolidClassifier
+//purpose  : 
 //=======================================================================
-void TopOpeBRepTool_SolidClassifier::Destroy() 
+TopOpeBRepTool_SolidClassifier::~TopOpeBRepTool_SolidClassifier() 
 {
   Standard_Integer i, aNb;
   
index 85b58f6d1486636e660ee5de14955b53d36fac01..cdf82a5b87b5491751eb6c71919d55ba424fffc8 100644 (file)
@@ -45,8 +45,7 @@ public:
   
   Standard_EXPORT void Clear();
   
-  Standard_EXPORT void Destroy();
-Standard_EXPORT  ~TopOpeBRepTool_SolidClassifier() {Destroy();}
+  Standard_EXPORT ~TopOpeBRepTool_SolidClassifier();
   
   Standard_EXPORT void LoadSolid (const TopoDS_Solid& S);
   
index 8c07693b3a9f1f981bfff7d5d73b57c817bd85e3..3e8bf4d7ca8bcbc4d8243b91b021fefde3d0ba00 100644 (file)
@@ -44,7 +44,7 @@ TopTools_ShapeSet::TopTools_ShapeSet() : myFormatNb(1)
 {
 }
 
-void TopTools_ShapeSet::Delete()
+TopTools_ShapeSet::~TopTools_ShapeSet()
 {}
 
 //=======================================================================
index 0a347618fdab2054408d27be6809f66617800c43..fde517d6bcd6a3ed9e6d331f3db4ffa4437a7d29 100644 (file)
@@ -48,8 +48,7 @@ public:
   //! Builds an empty ShapeSet.
   Standard_EXPORT TopTools_ShapeSet();
   
-  Standard_EXPORT virtual void Delete();
-Standard_EXPORT virtual ~TopTools_ShapeSet(){Delete() ; }
+  Standard_EXPORT virtual ~TopTools_ShapeSet();
   
   Standard_EXPORT void SetFormatNb (const Standard_Integer theFormatNb);
   
index 97e49113713662821d1015947d99e4b24e6979e5..f7c63fa0f69c27f141be70279100970165c68959 100644 (file)
@@ -252,5 +252,6 @@ TransferBRep_Reader::TransferBRep_Reader ()
   () const
       {  return theProc;  }
 
-void TransferBRep_Reader::Destroy() {}
+TransferBRep_Reader::~TransferBRep_Reader()
+{}
      
index 1f930aebed9fe6b2fb85bc7adcf716917d4ffb9d..6cf937f0e3beb83c064db2f8af08164cd43e99c9 100644 (file)
@@ -182,11 +182,7 @@ public:
   //! Can be used for queries more accurate than the default ones.
   Standard_EXPORT Handle(Transfer_TransientProcess) TransientProcess() const;
   
-  Standard_EXPORT virtual void Destroy();
-Standard_EXPORT virtual ~TransferBRep_Reader() { Destroy(); }
-
-
-
+  Standard_EXPORT virtual ~TransferBRep_Reader();
 
 protected:
 
index 146b301b9f71bd2f21503ef892138bdc95ad4162..cef31550edd06ea3b8483f9e380fab64c0164a10 100644 (file)
@@ -91,7 +91,3 @@ void Units_ShiftedToken::Dump(const Standard_Integer ashift,
   for(int i=0; i<ashift; i++)cout<<"  ";
   cout<<"  move  : "<<themove<<endl;
 }
-
-void Units_ShiftedToken::Destroy () {
-
-}
index 74cec17ee58f9cb8b22a41e39dc04f3d2c85c8fa..b0eb28c0ca68b242232fb7568785548810a1987a 100644 (file)
@@ -75,13 +75,6 @@ public:
   //! conversion.
   Standard_EXPORT virtual Standard_Real Divided (const Standard_Real avalue) const Standard_OVERRIDE;
   
-  //! Destroies the Token
-  Standard_EXPORT virtual void Destroy() Standard_OVERRIDE;
-~Units_ShiftedToken()
-{
-  Destroy();
-}
-  
   Standard_EXPORT virtual void Dump (const Standard_Integer ashift, const Standard_Integer alevel) const Standard_OVERRIDE;
 
 
index 4850b3cbf3abaa7c5012971047dcf217d84d9033..e53f1d87f39d0bc40a0b2df3d7b146c1443c7972 100644 (file)
@@ -524,7 +524,3 @@ Standard_Boolean operator >=(const Handle(Units_Token)& atoken1,const Handle(Uni
 {
   return atoken1->IsGreaterOrEqual(atoken2);
 }
-
-void Units_Token::Destroy () {
-
-}
index fe098e8d86a51e5c1f89b8436e81bb7869c17d1d..87ecd9ffb9085132a7f075e51d98b04900bd9786 100644 (file)
@@ -183,13 +183,6 @@ public:
   //! false otherwise.
     Standard_Boolean IsGreaterOrEqual (const Handle(Units_Token)& atoken) const;
   
-  //! Destroies the Token
-  Standard_EXPORT virtual void Destroy();
-~Units_Token()
-{
-  Destroy();
-}
-  
   //! Useful for debugging
   Standard_EXPORT virtual void Dump (const Standard_Integer ashift, const Standard_Integer alevel) const;
 
index f28c6b2c0275bae5018a2ca0403b13b8a13c3aca..014348b6f634315744449fc2641212537a136cc9 100644 (file)
@@ -68,11 +68,11 @@ WNT_WClass::WNT_WClass (
 }  // end constructor
 
 //=======================================================================
-//function : Destroy
+//function : ~WNT_WClass
 //purpose  : 
 //=======================================================================
 
-void WNT_WClass::Destroy ()
+WNT_WClass::~WNT_WClass ()
 {
 
  UnregisterClass (  lpszName, ( HINSTANCE )hInstance  );
index 78658d2357cea38df08d7bec63d73e61c49da4c6..6b28ffe293abc495788cff92db0dbd14a72e3cb1 100644 (file)
@@ -62,11 +62,7 @@ public:
   Standard_EXPORT WNT_WClass(const Standard_CString aClassName, const Standard_Address aWndProc, const WNT_Uint& aStyle, const Standard_Integer aClassExtra = 0, const Standard_Integer aWindowExtra = 0, const Aspect_Handle aCursor = 0, const Aspect_Handle anIcon = 0, const Standard_CString aMenuName = 0);
   
   //! Destroys all resources attached to the class
-  Standard_EXPORT virtual void Destroy();
-~WNT_WClass()
-{
-  Destroy();
-}
+  Standard_EXPORT ~WNT_WClass();
   
   //! Returns address of window procedure.
     Standard_Address WndProc() const;
index 7f8b0767cc39e8eaaee4db1d0641612fb0741b7b..b8d586fe2ffdbac890f83a9bf89bead95259ac41 100644 (file)
@@ -123,10 +123,10 @@ WNT_Window::WNT_Window (const Aspect_Handle        theHandle,
 }
 
 // =======================================================================
-// function : Destroy
+// function : ~WNT_Window
 // purpose  :
 // =======================================================================
-void WNT_Window::Destroy()
+WNT_Window::~WNT_Window()
 {
   if (myHWindow == NULL
    || myIsForeign)
index 519263004dec625501cd6636505f29e12f262371..b7b6f3c0f690088e13541558a5ec0271326336a6 100644 (file)
@@ -56,12 +56,8 @@ public:
   //! This handle equals ( aPart1 << 16 ) + aPart2.
   Standard_EXPORT WNT_Window(const Aspect_Handle aHandle, const Quantity_NameOfColor aBackColor = Quantity_NOC_MATRAGRAY);
   
-  //! Destroies the Window and all resourses attached to it.
-  Standard_EXPORT virtual void Destroy();
-~WNT_Window()
-{
-  Destroy();
-}
+  //! Destroys the Window and all resourses attached to it.
+  Standard_EXPORT ~WNT_Window();
   
   //! Sets cursor <aCursor> for ENTIRE WINDOW CLASS to which
   //! the Window belongs.
index e1ceaa23afde99645b8238553163b8b7aa989657..b00f02ebe889c32fe6ea82a18e3ed018e1f6f0e3 100644 (file)
@@ -313,13 +313,3 @@ Standard_Boolean XCAFDoc_DocumentTool::IsXCAFDocument(const  Handle(TDocStd_Docu
   Handle(TDataStd_TreeNode) aRootNode;
   return RootL.FindAttribute (aRefGuid, aRootNode);
 }
-
-
-//=======================================================================
-//function : Destroy
-//purpose  : No longer required. Kept for binary compatibility only.
-//=======================================================================
-
-void XCAFDoc_DocumentTool::Destroy()
-{
-}
index 38d4102104ee8eb7c5374bde1d47244ff39bfbf5..e67d725a8d7a7cf511564f266afa03b7c73354a1 100644 (file)
@@ -104,17 +104,7 @@ public:
   Standard_EXPORT Handle(TDF_Attribute) NewEmpty() const Standard_OVERRIDE;
   
   Standard_EXPORT void Paste (const Handle(TDF_Attribute)& into, const Handle(TDF_RelocationTable)& RT) const Standard_OVERRIDE;
-  
-  //! Unregisters the document holding this attribute from an
-  //! internal global map of XDE documents.
-  Standard_EXPORT virtual void Destroy();
-~XCAFDoc_DocumentTool()
-{
-  Destroy();
-}
-
-
-
   DEFINE_STANDARD_RTTIEXT(XCAFDoc_DocumentTool,TDF_Attribute)
 
 protected:
index 48e1965f90e5e8c9b6dcaec820eb1503659a7098..cd4004dec4ac52383dd11691a46f97554f469112 100644 (file)
@@ -229,10 +229,10 @@ Xw_Window::Xw_Window (const Handle(Aspect_DisplayConnection)& theXDisplay,
 }
 
 // =======================================================================
-// function : Destroy
+// function : ~Xw_Window
 // purpose  :
 // =======================================================================
-void Xw_Window::Destroy()
+Xw_Window::~Xw_Window()
 {
   if (myIsOwnWin && myXWindow != 0 && !myDisplay.IsNull())
   {
index 693e8f93c939d691369074c76c97980aa8e43936..bf1828189b4bd7a712bdc583196e57c69ba29b98 100644 (file)
@@ -58,13 +58,8 @@ public:
                              const Window theXWin,
                              const Aspect_FBConfig theFBConfig = NULL);
 
-  //! Destroies the Window and all resourses attached to it
-  Standard_EXPORT virtual void Destroy() Standard_OVERRIDE;
-
-  ~Xw_Window()
-  {
-    Destroy();
-  }
+  //! Destroys the Window and all resourses attached to it
+  Standard_EXPORT ~Xw_Window();
 
   //! Opens the window <me>
   Standard_EXPORT virtual void Map() const Standard_OVERRIDE;
index 43b5f5a9e081933e7f87f2b7ea70798cdbc67e71..9da344771711ea316e9d332172f0aaa0ac61a057 100644 (file)
@@ -82,8 +82,7 @@ public:
   //! Is used to redifine the operator <<.
   Standard_EXPORT void Dump (Standard_OStream& o) const;
   
-  //! Destructor alias.
-    void Delete() const;
+  //! Destructor
   Standard_EXPORT virtual ~math_BissecNewton();
 
 
index 06815b1cfc42b0c7e8abb415f348fed5ba4c6e11..bb1739283ec227ea923918a35af6a6c42372dcb5 100644 (file)
 
 #include <StdFail_NotDone.hxx>
 
-inline void math_BissecNewton::Delete() const
-{
-}
-
 inline Standard_Boolean math_BissecNewton::IsSolutionReached(math_FunctionWithDerivative&)
 {
   return Abs(dx) <= XTol;
index 46c4a0ee164819e2022d207a0e959f5438992056..057e8ab8b7979228292a01eedddd8bc01f3303c5 100644 (file)
@@ -51,8 +51,7 @@ public:
   //! It has to be used if F(Bx) is known.
   Standard_EXPORT math_BrentMinimum(const Standard_Real TolX, const Standard_Real Fbx, const Standard_Integer NbIterations = 100, const Standard_Real ZEPS = 1.0e-12);
   
-  //! Destructor alias.
-    void Delete() const;
+  //! Destructor
   Standard_EXPORT virtual ~math_BrentMinimum();
   
 
index 948890225a11a508f8e1735a29c99eac02591e38..9f5fd8cf697f21656d7ac25b7c0a9e66c0d90615 100644 (file)
 
 #include <StdFail_NotDone.hxx>
 
-inline void math_BrentMinimum::Delete() const
-{
-}
-
-
 inline Standard_Boolean math_BrentMinimum::IsSolutionReached(math_Function&)
 {
   const Standard_Real TwoTol = 2.0 * (XTol * fabs(x) + EPSZ);
index 89951432132bde18e00bb0069d40ac32bf6fac12..3730ebe4fcb5999e087190cb3bcc940de45bb611 100644 (file)
@@ -48,8 +48,7 @@ public:
   //! Warning: constructor does not perform computations.
   Standard_EXPORT math_FRPR(const math_MultipleVarFunctionWithGradient& theFunction, const Standard_Real theTolerance, const Standard_Integer theNbIterations = 200, const Standard_Real theZEPS = 1.0e-12);
   
-  //! Destructor alias.
-  Standard_EXPORT void Delete() const;
+  //! Destructor
   Standard_EXPORT virtual ~math_FRPR();
   
 
index aa0a9e670f36a577959f28a56de328df96b57364..29b358049fada1b3311a25dbbd2d85adcf4dd2b6 100644 (file)
 #include <StdFail_NotDone.hxx>
 #include <math_Vector.hxx>
 
-inline void math_FRPR::Delete() const
-{
-}
-
 inline Standard_Boolean math_FRPR::IsSolutionReached(math_MultipleVarFunctionWithGradient&)
 {
   return 2.0  *  fabs(TheMinimum  - PreviousMinimum) <= 
index 59485ec69cb2c6ef92fe4c0ba6279755353f0275..aa41d3dadb72eb741ff0a280812cd9f525471a6d 100644 (file)
@@ -666,7 +666,6 @@ math_FunctionSetRoot::math_FunctionSetRoot(math_FunctionSetWithDerivatives& theF
 //=======================================================================
 math_FunctionSetRoot::~math_FunctionSetRoot()
 {
-  Delete();
 }
 
 //=======================================================================
index 3a738404f422a6d6f1be85a2ca15255cae436993..62363084525fc779caa57c8abc90e3b3060cc4b2 100644 (file)
@@ -61,8 +61,7 @@ public:
   //! constructor.
   Standard_EXPORT math_FunctionSetRoot(math_FunctionSetWithDerivatives& F, const Standard_Integer NbIterations = 100);
   
-  //! Destructor alias.
-  Standard_EXPORT void Delete() const;
+  //! Destructor
   Standard_EXPORT virtual ~math_FunctionSetRoot();
   
   //! Initializes the tolerance values.
index 50937dba46a30c3b08a4e0949f7f5679bbff0dd9..24b1bad422307979a1430c2238d8d51def5c04b7 100644 (file)
 #include <StdFail_NotDone.hxx>
 #include <Standard_DimensionError.hxx>
 
-inline void math_FunctionSetRoot::Delete() const
-{
-}
-
-
 inline Standard_Boolean math_FunctionSetRoot::IsSolutionReached(math_FunctionSetWithDerivatives&)
 {
   for (Standard_Integer i = 1; i <= Sol.Length(); ++i)
index dc13d7b1fb1fa40852a0275318609d2719d848b1..026663161c49019171946249a44a63e9ae767ed7 100644 (file)
@@ -60,8 +60,7 @@ public:
   //! The method SetTolerance must be called before performing the algorithm.
   Standard_EXPORT math_NewtonFunctionSetRoot(math_FunctionSetWithDerivatives& theFunction, const Standard_Real theFTolerance, const Standard_Integer theNbIterations = 100);
   
-  //! Destructor alias.
-  Standard_EXPORT void Delete() const;
+  //! Destructor
   Standard_EXPORT virtual ~math_NewtonFunctionSetRoot();
   
   //! Initializes the tolerance values for the unknowns.
index c318555dd5343bfe3dc6ce2f22cf4bcbdb60cd5a..635c164754fa22a025eb7df6943094308bea63ce 100644 (file)
 
 #include <StdFail_NotDone.hxx>
 
-inline void math_NewtonFunctionSetRoot::Delete() const
-{
-}
-
 inline Standard_Boolean math_NewtonFunctionSetRoot::IsSolutionReached(math_FunctionSetWithDerivatives&)
 {
   for (Standard_Integer i = DeltaX.Lower(); i <= DeltaX.Upper(); ++i)
index 41a464e2f1c649fc523ca2c4061d2c2002b9eeff..7de5f81d8323a9bdc30882b9944e02474d50b222 100644 (file)
@@ -52,8 +52,7 @@ public:
   //! Search the solution.
   Standard_EXPORT void Perform (math_MultipleVarFunctionWithHessian& theFunction, const math_Vector& theStartingPoint);
   
-  //! Destructor alias.
-    void Delete() const;
+  //! Destructor
   Standard_EXPORT virtual ~math_NewtonMinimum();
   
 
index 688945b7ccfa19f29f16be4c6218be5d6897f979..2d6852b97f9eb754dcafb1f71fae17e55685cb29 100644 (file)
 
 #include <StdFail_NotDone.hxx>
 
-inline void math_NewtonMinimum::Delete() const
-{
-}
-
 inline Standard_Boolean math_NewtonMinimum::IsConverged() const 
 {
   return ( (TheStep.Norm() <= XTol ) || 
index d07c2f3b18e01cd771763485c15577195a7bd433..080cc2d2aa097b1e80e129a9aa85bc0f1260a96a 100644 (file)
@@ -47,8 +47,7 @@ public:
   //! Constructor. Initialize new entity.
   Standard_EXPORT math_Powell(const math_MultipleVarFunction& theFunction, const Standard_Real theTolerance, const Standard_Integer theNbIterations = 200, const Standard_Real theZEPS = 1.0e-12);
   
-  //! Destructor alias
-    void Delete() const;
+  //! Destructor
   Standard_EXPORT virtual ~math_Powell();
   
 
index 5d7cdc477e4811e1812c3f99f78b5c03b3aebb75..56aa6c6be89bd2cf7c6bc06e49fe49fe92b82323 100644 (file)
 #include <StdFail_NotDone.hxx>
 #include <math_Vector.hxx>
 
-inline void math_Powell::Delete() const
-{
-}
-
 inline Standard_Boolean math_Powell::IsSolutionReached(math_MultipleVarFunction&)
 {  
   return 2.0  *  fabs(PreviousMinimum - TheMinimum) <=