]> Creatis software - bbtk.git/commitdiff
(some of the) unused variables
authorjean-pierre roux <jean-pierre.roux@creatis.insa-lyon.fr>
Wed, 27 Jul 2011 15:26:41 +0000 (15:26 +0000)
committerjean-pierre roux <jean-pierre.roux@creatis.insa-lyon.fr>
Wed, 27 Jul 2011 15:26:41 +0000 (15:26 +0000)
packages/vtk/src/bbvtkCSVReader.cxx
packages/vtk/src/bbvtkPolyDataReaderPlus.cxx
packages/vtk/src/bbvtkPolyDataWriterPlus.cxx
packages/vtk/src/names.cxx

index bc30305ae34680af1568c0c08895ad9ecf4b0976..a9e0be1f70203293fd5b48ffbe790e9b736b1325 100755 (executable)
@@ -84,7 +84,7 @@ vtkImageData* CSVReader::createImage(std::vector< std::vector<double> > info, in
 {
        vtkImageData* final = vtkImageData::New();
 
-       int ext[6];
+       //int ext[6];
        int newDim[3];
        //double space[3];
        double origin[3];
index ab887e2e8b1dd4b783af508dd2b862d8b3525420..4f7e92208d2d5cadd66479b9107675d5c99a4812 100644 (file)
@@ -35,7 +35,7 @@ void PolyDataReaderPlus::Process()
                        reader->SetFileName(bbGetInputInPath().data());
                        informacion = (vtkPolyData*)reader->GetOutput();
                        reader->CloseVTKFile();
-                       vtkPolyData* old = bbGetOutputOut();
+                       vtkPolyData* old = bbGetOutputOut();  // old unused ? // JPR
                        bbSetOutputOut(informacion);
                        readed = true;
                }
@@ -46,7 +46,7 @@ void PolyDataReaderPlus::Process()
                        reader->SetFileName(bbGetInputInPath().data());
                        informacion = reader->GetOutput();
 
-                       vtkPolyData* old = bbGetOutputOut();
+                       vtkPolyData* old = bbGetOutputOut();  // old unused ? // JPR
                        bbSetOutputOut(informacion);
                        readed = true;
                }
index 2cc637e5c7aa494a0b251feedad3e4dd7a3a664b..ad81efb0e035ae4bed22866317dbaec1116f7b79 100755 (executable)
@@ -12,7 +12,7 @@ void PolyDataWriterPlus::Process()
 
        if (!HasObserver(OBS_PRE_WRITER_1) && bbGetInputInPrePersistObs1() != NULL)
                AddObserver(OBS_PRE_WRITER_1, bbGetInputInPrePersistObs1());
- // warning: NULL used in arithmetic // JPR
+ /// \TODO fix warning: NULL used in arithmetic // JPR
        if (!HasObserver(OBS_POST_WRITER_1) == NULL && bbGetInputInPostPersistObs1() != NULL)
                AddObserver(OBS_POST_WRITER_1, bbGetInputInPostPersistObs1());
 
index dfdb0110c3c083606edd511929ccefb1202ce39d..4c01e5c0df3f37270589b61ad10c050d3e0a0281 100755 (executable)
@@ -44,7 +44,7 @@ std::string StringReplace(std::string in, std::string viejo, std::string nuevo)
   while (found!=std::string::npos)
   {
     //Mienstras halla
-    int inicio = int(found);
+    //int inicio = int(found); // JPR
     in.replace(found,viejo.length(),nuevo);
     found=in.find(viejo);
   }