Commit 82d38579 authored by Sean McBride's avatar Sean McBride

Removed simple dead stores/statements found by cppcheck

Change-Id: I17b99c887200f98c614bbbcb413db784da6075db
parent 5da80674
......@@ -2602,7 +2602,6 @@ int vtkPolyhedron::InternalContour(double value,
std::vector<vtkIdVectorType> polygonVector;
vtkIdToIdVectorMapType::iterator ceMapIt, ceBackupMapIt;
vtkIdSetType::iterator cpSetIt = cpSet.end();
vtkIdVectorType::iterator cpVectorIt;
// backup ceMap. During graph travasal, we will remove edges from contour point
// which can mess up the ordering.
......
......@@ -595,7 +595,7 @@ void vtkImageMarchingCubesMarch(vtkImageMarchingCubes *self,
unsigned long target, count;
// avoid warnings
ptr = ptr;
(void)ptr;
// Get information to loop through images.
inData->GetExtent(min0, max0, min1, max1, min2, max2);
......
......@@ -973,7 +973,6 @@ static int cgmcomheadlong(unsigned char *es, int elemclass, int id, int len)
/* now set the second two bytes */
cgmAppShort(es, static_cast<short int>(len));
*es = *es & 0177; /* make bit 15 = 0 */
es += 2;
return 1;
}
......
......@@ -295,7 +295,6 @@ int vtkSurfaceLICTestDriver(
mapper->SetScalarMode(VTK_SCALAR_MODE_USE_POINT_FIELD_DATA);
lut->Delete();
}
dataObj = NULL;
// Pass parameters.
painter->SetNumberOfSteps(num_steps);
......
......@@ -422,7 +422,6 @@ static int preproc_evaluate_char(
#endif
return VTK_PARSE_SYNTAX_ERROR;
}
cp++;
*is_unsigned = 0;
return VTK_PARSE_OK;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment