Skip to content
Snippets Groups Projects
Commit 80274891 authored by Mathieu Westphal (Kitware)'s avatar Mathieu Westphal (Kitware) :zap:
Browse files

Correcting a warning

parent 7e3e0bb3
No related branches found
No related tags found
No related merge requests found
......@@ -319,25 +319,6 @@ std::vector<SeedT> ExtractSliceFromSeed(const vtkVector3d& seed,
return next_seeds;
}
/**
* shallow copy except those blocks where the predicate returns true.
*/
template <typename UnaryPredicate>
void ShallowCopyIfNot(vtkCompositeDataSet* input, vtkCompositeDataSet* output, UnaryPredicate p)
{
output->CopyStructure(input);
auto iter = input->NewIterator();
for (iter->InitTraversal(); !iter->IsDoneWithTraversal(); iter->GoToNextItem())
{
auto dobj = iter->GetCurrentDataObject();
if (!p(dobj))
{
output->SetDataSet(iter, dobj);
}
}
iter->Delete();
}
void Append(vtkPartitionedDataSet* input, vtkPartitionedDataSet* output)
{
unsigned int next = output->GetNumberOfPartitions();
......
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