Преглед на файлове

Remove unnecessary std::vector initialization.

Chris Johnson преди 6 години
родител
ревизия
1a67e24a41
променени са 1 файла, в които са добавени 0 реда и са изтрити 5 реда
  1. 0 5
      include/igl/copyleft/cgal/wire_mesh.cpp

+ 0 - 5
include/igl/copyleft/cgal/wire_mesh.cpp

@@ -65,11 +65,6 @@ IGL_INLINE void igl::copyleft::cgal::wire_mesh(
 
   // Count each vertex's indicident edges.
   std::vector<int> nedges(WV.rows());
-  for(int v = 0;v<WV.rows();v++)
-  {
-    nedges[v] = 0;
-  }
-
   for(int e = 0;e<WE.rows();e++)
   {
     ++nedges[WE(e, 0)];