ソースを参照

COMP: Remove unused variables.

Julien Finet 15 年 前
コミット
a1f29e4860
共有2 個のファイルを変更した6 個の追加1 個の削除を含む
  1. 4 1
      Libs/Visualization/VTK/Core/ctkVTKCompositeFunction.cpp
  2. 2 0
      Libs/Visualization/VTK/Core/ctkVTKPiecewiseFunction.cpp

+ 4 - 1
Libs/Visualization/VTK/Core/ctkVTKCompositeFunction.cpp

@@ -156,9 +156,10 @@ ctkControlPoint* ctkVTKCompositeFunction::controlPoint(int index)const
 
   double valuesPWF[4];
   double valuesCTF[6];
+#ifndef QT_NO_DEBUG
   double* rangePWF = d->PiecewiseFunction->GetRange();
   double* rangeCTF = d->ColorTransferFunction->GetRange();
-
+#endif
   d->PiecewiseFunction->GetNodeValue(index, valuesPWF);
   d->ColorTransferFunction->GetNodeValue(index, valuesCTF);
 
@@ -317,7 +318,9 @@ int ctkVTKCompositeFunction::insertControlPoint(qreal pos)
       d->ColorTransferFunction->AddRGBPoint( pos, color[0], color[1], color[2] );
 
   // Add point to piecewise
+#ifndef QT_NO_DEBUG
   int indexPiecewise =
+#endif
       d->PiecewiseFunction->AddPoint( pos, 0);
 
   // check index

+ 2 - 0
Libs/Visualization/VTK/Core/ctkVTKPiecewiseFunction.cpp

@@ -139,7 +139,9 @@ ctkControlPoint* ctkVTKPiecewiseFunction::controlPoint(int index)const
   Q_ASSERT(index >= 0 && index < this->count());
 
   double values[4];
+#ifndef QT_NO_DEBUG
   double* range = d->PiecewiseFunction->GetRange();
+#endif
   d->PiecewiseFunction->GetNodeValue(index, values);
 
   QVariant rangeY[2];