Commit c22efd32 authored by Brad King's avatar Brad King

COMP: Fixed unreachable code warning.

parent b49c812d
......@@ -34,7 +34,7 @@
#include <vtkstd/string>
#include <vtkstd/vector>
vtkCxxRevisionMacro(vtkFacetWriter, "1.4");
vtkCxxRevisionMacro(vtkFacetWriter, "1.5");
vtkStandardNewMacro(vtkFacetWriter);
//----------------------------------------------------------------------------
......@@ -153,11 +153,15 @@ int vtkFacetWriter::WriteDataToStream(ostream* ost, vtkPolyData* data)
if ( data->GetVerts()->GetNumberOfCells() )
{
if ( written )
{
vtkErrorMacro("Multiple different cells in the poly data");
return 0;
}
// This test is needed if another cell type is written above this
// block. We must remove it here because it produces an
// unreachable code warning.
//
//if ( written )
// {
// vtkErrorMacro("Multiple different cells in the poly data");
// return 0;
// }
ca = data->GetVerts();
numCells = ca->GetNumberOfCells();
vtkIdType numPts = 0;
......
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