Skip to content
Snippets Groups Projects
Commit 008dd748 authored by Sean McBride's avatar Sean McBride
Browse files

Fixed -Wtautological-constant-compare warning; removed useless size check

parent 37e24f73
No related branches found
No related tags found
No related merge requests found
...@@ -417,10 +417,6 @@ class vtkCellTreeBuilder ...@@ -417,10 +417,6 @@ class vtkCellTreeBuilder
void Build( vtkCellTreeLocator *ctl, vtkCellTreeLocator::vtkCellTree& ct, vtkDataSet* ds ) void Build( vtkCellTreeLocator *ctl, vtkCellTreeLocator::vtkCellTree& ct, vtkDataSet* ds )
{ {
const vtkIdType size = ds->GetNumberOfCells(); const vtkIdType size = ds->GetNumberOfCells();
if( size > std::numeric_limits<vtkIdType>::max() )
{
vtkGenericWarningMacro("Too many cells.");
}
double cellBounds[6]; double cellBounds[6];
this->m_pc.resize(size); this->m_pc.resize(size);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment