Salome HOME
Copyright update 2022
[modules/shaper.git] / src / SketchPlugin / SketchPlugin_CurveFitting.cpp
index f775679bda976b5196065188bf9c44dd19ed79d1..0dc9ad835f2b96921f8178b25f5a40f059f7e5f9 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright (C) 2020  CEA/DEN, EDF R&D
+// Copyright (C) 2020-2022  CEA/DEN, EDF R&D
 //
 // This library is free software; you can redistribute it and/or
 // modify it under the terms of the GNU Lesser General Public
@@ -262,7 +262,7 @@ void SketchPlugin_CurveFitting::reorderPoints()
   // to keep mapping between points and attributes
   std::map<GeomPointPtr, std::pair<ObjectPtr, AttributePtr> > aMap;
   std::list<std::pair<ObjectPtr, AttributePtr> > aPointsList = aPointsAttr->list();
-  bool isPointAdded = aCoordinates.size() != aPointsList.size();
+
   std::list<GeomPointPtr>::iterator aCoordIt = aCoordinates.begin();
   std::list<std::pair<ObjectPtr, AttributePtr> >::iterator anAttrIt = aPointsList.begin();
   for (; aCoordIt != aCoordinates.end() && anAttrIt != aPointsList.end(); ++aCoordIt, ++anAttrIt)