mirror of
https://gitlab.kitware.com/vtk/vtk-m
synced 2024-09-16 17:22:55 +00:00
remove unused variables
This commit is contained in:
parent
bba3f1fa58
commit
d800a33c2e
@ -89,7 +89,6 @@ VTKM_EXEC int FindNeighborCellInLocalIndex(const vtkm::Id2& eOI,
|
||||
{
|
||||
int neighboringCellIndex = -1;
|
||||
vtkm::IdComponent numberOfIncidentCells = incidentCells.GetNumberOfComponents();
|
||||
size_t neighboringCellsCount = 0;
|
||||
for (vtkm::IdComponent incidentCellIndex = 0; incidentCellIndex < numberOfIncidentCells;
|
||||
incidentCellIndex++)
|
||||
{
|
||||
@ -122,7 +121,6 @@ VTKM_EXEC int FindNeighborCellInLocalIndex(const vtkm::Id2& eOI,
|
||||
(canonicalEdgeId[0] == eOI[1] && canonicalEdgeId[1] == eOI[0]))
|
||||
{
|
||||
neighboringCellIndex = incidentCellIndex;
|
||||
neighboringCellsCount++;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
@ -435,14 +435,12 @@ public:
|
||||
|
||||
FloatType minDistance = static_cast<FloatType>(1e32);
|
||||
FloatType maxDistance = static_cast<FloatType>(-1);
|
||||
int hitCount = 0;
|
||||
for (vtkm::Int32 i = 0; i < numFaces; ++i)
|
||||
{
|
||||
FloatType dist = distances[i];
|
||||
|
||||
if (dist != -1)
|
||||
{
|
||||
hitCount++;
|
||||
if (dist < minDistance)
|
||||
{
|
||||
minDistance = dist;
|
||||
@ -564,14 +562,12 @@ public:
|
||||
vtkm::Int32 maxFace = -1;
|
||||
FloatType minDistance = static_cast<FloatType>(1e32);
|
||||
FloatType maxDistance = static_cast<FloatType>(-1);
|
||||
int hitCount = 0;
|
||||
for (int i = 0; i < numFaces; ++i)
|
||||
{
|
||||
FloatType dist = distances[i];
|
||||
|
||||
if (dist != -1)
|
||||
{
|
||||
hitCount++;
|
||||
if (dist < minDistance)
|
||||
{
|
||||
minDistance = dist;
|
||||
|
Loading…
Reference in New Issue
Block a user