diff options
| author | Stijn Buys <ingar@telenet.be> | 2026-10-25 18:32:10 +0100 |
|---|---|---|
| committer | Stijn Buys <ingar@telenet.be> | 2026-10-25 18:32:10 +0100 |
| commit | 9496897065d43498830aff260379fe08e41a0270 (patch) | |
| tree | aa57157eec4f860f08c9202836274a531b3f2f3a /src/model | |
| parent | fb0524f933372a569e9b4b416c676f371f1631e5 (diff) | |
Removed unused variables.
Diffstat (limited to 'src/model')
| -rw-r--r-- | src/model/asefile.cc | 12 | ||||
| -rw-r--r-- | src/model/vertexarray.cc | 6 |
2 files changed, 9 insertions, 9 deletions
diff --git a/src/model/asefile.cc b/src/model/asefile.cc index ce43cd0..bbcc6e3 100644 --- a/src/model/asefile.cc +++ b/src/model/asefile.cc @@ -315,7 +315,7 @@ bool ASEFile::read_mesh_normals(std::istream &is) char data[1024]; memset(data, 0, sizeof(data)); - size_t count = 0; + //size_t count = 0; size_t index = 0; size_t vertindex = 0; @@ -337,7 +337,7 @@ bool ASEFile::read_mesh_normals(std::istream &is) it = ase_facelist.find(index); if (it != ase_facelist.end()) { (*it).second->normal().assign(x, y, z); - count++; + //count++; } else { con_warn << " could not find face " << index << std::endl; } @@ -366,7 +366,7 @@ bool ASEFile::read_mesh_normals(std::istream &is) } bool ASEFile::read_mesh_tvertex_list(std::istream &is) { - size_t count = 0; + //size_t count = 0; char data[1024]; memset(data, 0, sizeof(data)); @@ -387,7 +387,7 @@ bool ASEFile::read_mesh_tvertex_list(std::istream &is) if (line >> index >> x >> y >> z) { math::Vector3f *v = new math::Vector3f(x, y, z); ase_tvertexlist[index] = v; - count++; + //count++; } } } @@ -397,7 +397,7 @@ bool ASEFile::read_mesh_tvertex_list(std::istream &is) bool ASEFile::read_mesh_tface_list(std::istream &is) { - size_t count = 0; + //size_t count = 0; char data[1024]; memset(data, 0, sizeof(data)); @@ -428,7 +428,7 @@ bool ASEFile::read_mesh_tface_list(std::istream &is) if (t2) triangle->t2().assign(t2->x(), 1.0f - t2->y()); } - count++; + //count++; } } } diff --git a/src/model/vertexarray.cc b/src/model/vertexarray.cc index a5820d7..4c25e06 100644 --- a/src/model/vertexarray.cc +++ b/src/model/vertexarray.cc @@ -74,7 +74,7 @@ void VertexArray::add_sphere() math::Vector3f n; float texx, texy; - int quad_count = 0; + //int quad_count = 0; // add sphere for (int j = 0; j < (SPHERESEGMENTS - 1) / 2; j++) { @@ -98,9 +98,9 @@ void VertexArray::add_sphere() texy = 2.0f * (float)(j + 1) / (float)(SPHERESEGMENTS - 1); add_vertex(v, n, texx, texy); - quad_count++; + //quad_count++; } - quad_count--; + //quad_count--; } delete[] sintable; |
