diff --git a/src/tools/qml2puppet/qml2puppet/editor3d/gridgeometry.cpp b/src/tools/qml2puppet/qml2puppet/editor3d/gridgeometry.cpp index 4af31d072f0..616b904e9e3 100644 --- a/src/tools/qml2puppet/qml2puppet/editor3d/gridgeometry.cpp +++ b/src/tools/qml2puppet/qml2puppet/editor3d/gridgeometry.cpp @@ -80,8 +80,6 @@ void GridGeometry::doUpdateGeometry() setVertexData(vertexData); - int lastIndex = (vertexData.size() - 1) / int(sizeof(QVector3D)); - // Set bounds based on main grid size instead of actual mesh size to make all parts of the // grid have consistent bounds. const float extent = float(m_lines) * m_step;