diff --git a/src/DotRecast.Detour.TileCache/DtTileCacheBuilder.cs b/src/DotRecast.Detour.TileCache/DtTileCacheBuilder.cs index 1bb5cd12..0d5437ca 100644 --- a/src/DotRecast.Detour.TileCache/DtTileCacheBuilder.cs +++ b/src/DotRecast.Detour.TileCache/DtTileCacheBuilder.cs @@ -1395,17 +1395,6 @@ public static void RemoveVertex(DtTileCachePolyMesh mesh, int rem, int maxTris) { // Count number of polygons to remove. int maxVertsPerPoly = mesh.nvp; - int numRemovedVerts = 0; - for (int i = 0; i < mesh.npolys; ++i) - { - int p = i * maxVertsPerPoly * 2; - int nv = CountPolyVerts(mesh.polys, p, maxVertsPerPoly); - for (int j = 0; j < nv; ++j) - { - if (mesh.polys[p + j] == rem) - numRemovedVerts++; - } - } int nedges = 0; List edges = new List();