Salome HOME
#18963 Minimize compiler warnings
[plugins/netgenplugin.git] / src / NETGENPlugin / NETGENPlugin_SimpleHypothesis_2D_i.cxx
index def9479fdce31d29f2aa168c4bea893302706ad4..dbd3b98cb8023ca8cab9c961b660c27b8ac645ef 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright (C) 2007-2014  CEA/DEN, EDF R&D, OPEN CASCADE
+// Copyright (C) 2007-2020  CEA/DEN, EDF R&D, OPEN CASCADE
 //
 // This library is free software; you can redistribute it and/or
 // modify it under the terms of the GNU Lesser General Public
@@ -45,14 +45,12 @@ using namespace std;
 //=============================================================================
 NETGENPlugin_SimpleHypothesis_2D_i::
 NETGENPlugin_SimpleHypothesis_2D_i (PortableServer::POA_ptr thePOA,
-                                    int                     theStudyId,
                                     ::SMESH_Gen*            theGenImpl)
   : SALOME::GenericObj_i( thePOA ),
     SMESH_Hypothesis_i( thePOA )
 {
-  MESSAGE( "NETGENPlugin_SimpleHypothesis_2D_i::NETGENPlugin_SimpleHypothesis_2D_i" );
+  //MESSAGE( "NETGENPlugin_SimpleHypothesis_2D_i::NETGENPlugin_SimpleHypothesis_2D_i" );
   myBaseImpl = new ::NETGENPlugin_SimpleHypothesis_2D (theGenImpl->GetANewId(),
-                                                       theStudyId,
                                                        theGenImpl);
 }
 
@@ -65,7 +63,7 @@ NETGENPlugin_SimpleHypothesis_2D_i (PortableServer::POA_ptr thePOA,
 //=============================================================================
 NETGENPlugin_SimpleHypothesis_2D_i::~NETGENPlugin_SimpleHypothesis_2D_i()
 {
-  MESSAGE( "NETGENPlugin_SimpleHypothesis_2D_i::~NETGENPlugin_SimpleHypothesis_2D_i" );
+  //MESSAGE( "NETGENPlugin_SimpleHypothesis_2D_i::~NETGENPlugin_SimpleHypothesis_2D_i" );
 }
 
 //=============================================================================
@@ -74,9 +72,7 @@ NETGENPlugin_SimpleHypothesis_2D_i::~NETGENPlugin_SimpleHypothesis_2D_i()
  */
 //=============================================================================
 void NETGENPlugin_SimpleHypothesis_2D_i::SetNumberOfSegments(CORBA::Short nb)
-  throw ( SALOME::SALOME_Exception )
 {
-  MESSAGE("NETGENPlugin_SimpleHypothesis_2D_i::SetNumberOfSegments");
   ASSERT(myBaseImpl);
   try {
     this->GetImpl()->SetNumberOfSegments(nb);
@@ -94,7 +90,6 @@ void NETGENPlugin_SimpleHypothesis_2D_i::SetNumberOfSegments(CORBA::Short nb)
 //=============================================================================
 CORBA::Short NETGENPlugin_SimpleHypothesis_2D_i::GetNumberOfSegments()
 {
-  MESSAGE("NETGENPlugin_SimpleHypothesis_2D_i::GetNumberOfSegments");
   ASSERT(myBaseImpl);
   return this->GetImpl()->GetNumberOfSegments();
 }
@@ -107,7 +102,6 @@ CORBA::Short NETGENPlugin_SimpleHypothesis_2D_i::GetNumberOfSegments()
 
 void NETGENPlugin_SimpleHypothesis_2D_i::SetLocalLength(CORBA::Double segmentLength)
 {
-  MESSAGE("NETGENPlugin_SimpleHypothesis_2D_i::SetLocalLength");
   ASSERT(myBaseImpl);
   try {
     this->GetImpl()->SetLocalLength(segmentLength);
@@ -126,7 +120,6 @@ void NETGENPlugin_SimpleHypothesis_2D_i::SetLocalLength(CORBA::Double segmentLen
 
 CORBA::Double NETGENPlugin_SimpleHypothesis_2D_i::GetLocalLength()
 {
-  MESSAGE("NETGENPlugin_SimpleHypothesis_2D_i::GetLocalLength");
   ASSERT(myBaseImpl);
   return this->GetImpl()->GetLocalLength();
 }
@@ -138,7 +131,6 @@ CORBA::Double NETGENPlugin_SimpleHypothesis_2D_i::GetLocalLength()
 //=============================================================================
 void NETGENPlugin_SimpleHypothesis_2D_i::LengthFromEdges()
 {
-  MESSAGE("NETGENPlugin_SimpleHypothesis_2D_i::LengthFromEdges");
   ASSERT(myBaseImpl);
   this->GetImpl()->LengthFromEdges();
   SMESH::TPythonDump() << _this() << ".LengthFromEdges()";
@@ -151,7 +143,6 @@ void NETGENPlugin_SimpleHypothesis_2D_i::LengthFromEdges()
 //=============================================================================
 void NETGENPlugin_SimpleHypothesis_2D_i::SetMaxElementArea(CORBA::Double area)
 {
-  MESSAGE("NETGENPlugin_SimpleHypothesis_2D_i::SetMaxElementArea");
   ASSERT(myBaseImpl);
   this->GetImpl()->SetMaxElementArea(area);
   SMESH::TPythonDump() << _this() << ".SetMaxElementArea( " << SMESH::TVar(area) << " )";
@@ -166,7 +157,6 @@ void NETGENPlugin_SimpleHypothesis_2D_i::SetMaxElementArea(CORBA::Double area)
 
 CORBA::Double NETGENPlugin_SimpleHypothesis_2D_i::GetMaxElementArea()
 {
-  MESSAGE("NETGENPlugin_SimpleHypothesis_2D_i::GetMaxElementArea");
   ASSERT(myBaseImpl);
   return this->GetImpl()->GetMaxElementArea();
 }
@@ -201,7 +191,6 @@ CORBA::Boolean NETGENPlugin_SimpleHypothesis_2D_i::GetAllowQuadrangles()
 //=============================================================================
 ::NETGENPlugin_SimpleHypothesis_2D* NETGENPlugin_SimpleHypothesis_2D_i::GetImpl() const
 {
-  MESSAGE("NETGENPlugin_SimpleHypothesis_2D_i::GetImpl");
   return (::NETGENPlugin_SimpleHypothesis_2D*)myBaseImpl;
 }
 
@@ -247,7 +236,7 @@ int NETGENPlugin_SimpleHypothesis_2D_i::getParamIndex(const TCollection_AsciiStr
 //================================================================================
 
 std::string NETGENPlugin_SimpleHypothesis_2D_i::getMethodOfParameter(const int paramIndex,
-                                                                     int nbVars) const
+                                                                     int /*nbVars*/) const
 {
   switch ( paramIndex ) {
   case 0: return GetImpl()->GetNumberOfSegments() ? "SetNumberOfSegments" : "SetLocalLength";