From b1c0f46ac0931b6c8fccb22d38b7172e7cd8943a Mon Sep 17 00:00:00 2001 From: Nick Thompson Date: Fri, 12 Mar 2021 21:14:50 +0000 Subject: [PATCH] Response to code review. --- vtkm/cont/CellSetExtrude.cxx | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/vtkm/cont/CellSetExtrude.cxx b/vtkm/cont/CellSetExtrude.cxx index a22153514..3c1006b07 100644 --- a/vtkm/cont/CellSetExtrude.cxx +++ b/vtkm/cont/CellSetExtrude.cxx @@ -193,10 +193,7 @@ VTKM_CONT void CellSetExtrude::GetIndices(vtkm::Id index, VTKM_CONT void CellSetExtrude::GetIndices(vtkm::Id index, vtkm::cont::ArrayHandle& ids) const { - if (ids.GetNumberOfValues() < 6) - { - ids.Allocate(6); - } + ids.Allocate(6); auto outIdPortal = ids.WritePortal(); vtkm::cont::Token token; auto conn = this->PrepareForInput(vtkm::cont::DeviceAdapterTagSerial{},