Salome HOME
Remove unused variables
authorapo <apo@opencascade.com>
Wed, 12 Jan 2005 13:14:05 +0000 (13:14 +0000)
committerapo <apo@opencascade.com>
Wed, 12 Jan 2005 13:14:05 +0000 (13:14 +0000)
src/Controls/SMESH_Controls.cxx
src/Controls/SMESH_ControlsDef.hxx
src/OBJECT/SMESH_DeviceActor.cxx
src/SMESHGUI/SMESHGUI_FilterDlg.cxx
src/SMESHGUI/SMESHGUI_MeshPatternDlg.cxx
src/SMESHGUI/SMESHGUI_Preferences_ScalarBarDlg.cxx
src/SMESHGUI/SMESHGUI_RenumberingDlg.cxx

index d0ee98ef4faee7dbe55d7e687e8bb30b4eed38d4..3e31f7151bd4f7a9597c38dd717da7d73bf63c37 100644 (file)
@@ -958,10 +958,8 @@ bool Length2D::Value::operator<(const Length2D::Value& x) const{
 void Length2D::GetValues(TValues& theValues){
   TValues aValues;
   SMDS_FaceIteratorPtr anIter = myMesh->facesIterator();
-  int i = 0;
   for(; anIter->more(); ){
     const SMDS_MeshFace* anElem = anIter->next();
-    long anElemId = anElem->GetID();
     SMDS_ElemIteratorPtr aNodesIter = anElem->nodesIterator();
     long aNodeId[2];
     gp_Pnt P[3];
index 4244c0b0d03c9538c910276044fa95d1ce8c1eb1..50fb06558b6a8a8ae904dab61ee4ae52bec7bb57 100644 (file)
@@ -106,7 +106,7 @@ namespace SMESH{
       NumericalFunctor();
       virtual void SetMesh( SMDS_Mesh* theMesh );
       virtual double GetValue( long theElementId );
-      virtual double GetValue(const TSequenceOfXYZ& thePoints) {};
+      virtual double GetValue(const TSequenceOfXYZ& thePoints) { return -1.0;};
       virtual SMDSAbs_ElementType GetType() const = 0;
       virtual double GetBadRate( double Value, int nbNodes ) const = 0;
       long  GetPrecision() const;
index fb77446a95d2247eabf4202cdf61b6fd769f7fa0..16ead487f9ab8927d92b2ab06f8760ff1018caf6 100644 (file)
@@ -24,7 +24,7 @@
 //  File   : SMESH_Actor.cxx
 //  Author : Nicolas REJNERI
 //  Module : SMESH
-//  $Header$Header: /home/server/cvs/SMESH/SMESH_SRC/src/OBJECT/SMESH_DeviceActor.cxx,v 1.5.2.4 2004/12/27 12:49:55 apo Exp $
+//  $Header$Header$
 
 
 #include "SMESH_DeviceActor.h"
@@ -299,8 +299,7 @@ void SMESH_DeviceActor::SetExtControlMode(SMESH::Controls::FunctorPtr theFunctor
       anIdList->SetNumberOfIds(2);
       
       Length2D::TValues::const_iterator anIter = aValues.begin();
-      int i = 0;
-      for(vtkIdType aVtkId; anIter != aValues.end(); anIter++,i++){
+      for(vtkIdType aVtkId = 0; anIter != aValues.end(); anIter++,aVtkId++){
        const Length2D::Value& aValue = *anIter;
        int aNode[2] = {
          myVisualObj->GetNodeVTKId(aValue.myPntId[0]),
@@ -311,7 +310,7 @@ void SMESH_DeviceActor::SetExtControlMode(SMESH::Controls::FunctorPtr theFunctor
          anIdList->SetId( 1, aNode[1] );
          aConnectivity->InsertNextCell( anIdList );
          aCellTypesArray->InsertNextValue( VTK_LINE );
-         aScalars->SetValue(i,aValue.myLength);
+         aScalars->SetValue(aVtkId,aValue.myLength);
        }
       }
       
index 66bc89083da4ce13fd25c3c4f3175f159cfa9b57..46e57b4514d7f13e50aa787c97c3c37b3fb8f296 100755 (executable)
@@ -906,7 +906,6 @@ void SMESHGUI_FilterTable::onAddBtn()
   int aType = GetType();
   addRow( myTables[ aType ], aType );
 
-  Table* aTable = myTables[ aType ];
   Update();
 }
 
@@ -1348,9 +1347,6 @@ SMESHGUI_FilterTable::Table* SMESHGUI_FilterTable::createTable( QWidget*  thePar
   static int aLenCr = abs(  aMaxLenCr -
                             aMetrics.width( tr( "CRITERION" ) ) ) / aMetrics.width( ' ' ) + 5;
 
-  static int aLenCo = abs(  maxLength( getCompare(), aMetrics ) -
-                            aMetrics.width( tr( "COMPARE" ) ) ) / aMetrics.width( ' ' ) + 5;
-
   QString aCrStr;
   aCrStr.fill( ' ', aLenCr );
   QString aCoStr;
@@ -2319,7 +2315,7 @@ void SMESHGUI_FilterDlg::filterSelectionSource( const int theType,
 
       if ( aSelMap.Extent() > 0 )
       {
-        if(SMESH_Actor *anActor = SMESH::FindActorByEntry( anIter.Key()->getEntry() ) )
+        if( SMESH::FindActorByEntry( anIter.Key()->getEntry() ) )
         {
           for ( int i = 1; i <= aSelMap.Extent(); i++ )
             aToBeFiltered.Add( aSelMap(i) );
index da8fde1c942fc2d141cd3348fe35046af7b09d18..bdb3a8fd795f4a9cade4dfb5804520abc6c1e01a 100755 (executable)
@@ -176,7 +176,6 @@ QFrame* SMESHGUI_MeshPatternDlg::createMainFrame( QWidget* theParent )
   // Pictures 2d and 3d\r
   for ( int i = 0; i < 2; i++ )\r
   {\r
-    QWidget* aPreview, *aPicture;\r
     if ( i == 0 )\r
     {\r
       myPicture2d = new SMESHGUI_PatternWidget( aPatGrp ),\r
@@ -798,7 +797,7 @@ void SMESHGUI_MeshPatternDlg::displayPreview()
     vtkProperty* aProp = vtkProperty::New();\r
     aProp->SetRepresentationToWireframe();\r
     aProp->SetColor( 250, 0, 250 );\r
-    if ( SMESH_Actor* anActor = SMESH::FindActorByObject( myMesh ) )\r
+    if ( SMESH::FindActorByObject( myMesh ) )\r
       aProp->SetLineWidth( SMESH::GetFloat( "SMESH:SettingsWidth", 1 ) +1 );\r
     else\r
       aProp->SetLineWidth( 1 );\r
index b55413f09530a9013d2a312c32500fc9e131a458..c2474d067ffbbceb207f0f7b8f351774280b3cfe 100644 (file)
@@ -602,7 +602,6 @@ void SMESHGUI_Preferences_ScalarBarDlg::onSelectionChanged()
          myActor = anActor;
          vtkScalarBarActor* myScalarBarActor = myActor->GetScalarBarActor();
          
-         double aMin = 0.0, aMax = 0.0;
          if ( myScalarBarActor->GetLookupTable() ) {
            float *range = myScalarBarActor->GetLookupTable()->GetRange();
            myMinEdit->setText( QString::number( range[0] ) );
index 35b9df5ef96a4c20349f6483845db15e117c3c61..00ede0b48b97be7f86dda60ad901e52749e0ca0a 100644 (file)
@@ -246,7 +246,6 @@ void SMESHGUI_RenumberingDlg::ClickOnApply()
   
   if ( !myMesh->_is_nil())
     {
-      bool aResult = false;
       try
        {
          SMESH::SMESH_MeshEditor_var aMeshEditor = myMesh->GetMeshEditor();