Commit e3337306 authored by Sean McBride's avatar Sean McBride

Fixed obvious dead stores

Change-Id: I57060140d0aac4aff423850435a65b3e1a3a4e6f
parent 33dde16e
......@@ -282,7 +282,7 @@ void vtkImageToPolyDataFilter::RunLengthImage(vtkUnsignedCharArray *pixels,
vtkCellArray *newPolys;
double x[3], minX, maxX, minY, maxY;
vtkUnsignedCharArray *polyColors;
unsigned char *ptr, *colors=pixels->GetPointer(0), *color;
unsigned char *colors=pixels->GetPointer(0), *color;
// Setup data
newPts = vtkPoints::New();
......@@ -324,10 +324,9 @@ void vtkImageToPolyDataFilter::RunLengthImage(vtkUnsignedCharArray *pixels,
minX = origin[0] + i*spacing[0] - 0.5*spacing[0];
}
color = colors + 3*(i+j*dims[0]);
ptr = color;
while ( i < dims[0] )
{
ptr = colors + 3*(i+j*dims[0]);
unsigned char *ptr = colors + 3*(i+j*dims[0]);
if ( ! this->IsSameColor(color,ptr) )
{
break;
......@@ -1221,8 +1220,8 @@ void vtkImageToPolyDataFilter::BuildPolygons(vtkUnsignedCharArray *vtkNotUsed(po
polyColors->SetValue(3*cellId+1, ptr[1]);
polyColors->SetValue(3*cellId+2, ptr[2]);
p1 = ptId; p2 = -1;
while ( 1 )
p1 = ptId;
while ( true )
{
edges->GetCellPoints(edgeId, npts, pts);
p2 = (pts[0] != p1 ? pts[0] : pts[1]);
......
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