-Wunused-but-set-variable flagged variables removed

This commit is contained in:
Brian Swenson 2022-06-01 17:29:09 -04:00 committed by Graham Pentheny
parent 5a870d427e
commit c02d6fa81e
2 changed files with 0 additions and 4 deletions

View File

@ -1399,7 +1399,6 @@ static void pushBack(unsigned short v, unsigned short* arr, int& an)
static bool canRemoveVertex(dtTileCachePolyMesh& mesh, const unsigned short rem) static bool canRemoveVertex(dtTileCachePolyMesh& mesh, const unsigned short rem)
{ {
// Count number of polygons to remove. // Count number of polygons to remove.
int numRemovedVerts = 0;
int numTouchedVerts = 0; int numTouchedVerts = 0;
int numRemainingEdges = 0; int numRemainingEdges = 0;
for (int i = 0; i < mesh.npolys; ++i) for (int i = 0; i < mesh.npolys; ++i)
@ -1419,7 +1418,6 @@ static bool canRemoveVertex(dtTileCachePolyMesh& mesh, const unsigned short rem)
} }
if (numRemoved) if (numRemoved)
{ {
numRemovedVerts += numRemoved;
numRemainingEdges += numVerts-(numRemoved+1); numRemainingEdges += numVerts-(numRemoved+1);
} }
} }

View File

@ -566,7 +566,6 @@ static bool canRemoveVertex(rcContext* ctx, rcPolyMesh& mesh, const unsigned sho
const int nvp = mesh.nvp; const int nvp = mesh.nvp;
// Count number of polygons to remove. // Count number of polygons to remove.
int numRemovedVerts = 0;
int numTouchedVerts = 0; int numTouchedVerts = 0;
int numRemainingEdges = 0; int numRemainingEdges = 0;
for (int i = 0; i < mesh.npolys; ++i) for (int i = 0; i < mesh.npolys; ++i)
@ -586,7 +585,6 @@ static bool canRemoveVertex(rcContext* ctx, rcPolyMesh& mesh, const unsigned sho
} }
if (numRemoved) if (numRemoved)
{ {
numRemovedVerts += numRemoved;
numRemainingEdges += numVerts-(numRemoved+1); numRemainingEdges += numVerts-(numRemoved+1);
} }
} }