Salome HOME
Tangency arc feature can not be opened/saved (issue #1401)
[modules/shaper.git] / src / SketchPlugin / SketchPlugin_Tools.cpp
index e73349ef3486a0b58ed47779555dba6a4f34c659..82c5a3f93986c9c07d3857e797771ec59f7cdc52 100644 (file)
@@ -101,24 +101,4 @@ void findCoincidences(const FeaturePtr theStartCoin,
   }
 }
 
-void updateAngleAttribute(const AttributePtr& theFirstAngleAttribute,
-                          const AttributePtr& theSecondAngleAttribute,
-                          const int& theNumberOfCopies,
-                          const bool toFullAngle)
-{
-  if (theNumberOfCopies == 0)
-    return;
-
-  AttributeDoublePtr aDoubleFirstAttr = std::dynamic_pointer_cast<ModelAPI_AttributeDouble>(
-                                                                theFirstAngleAttribute);
-  double aValue = aDoubleFirstAttr->value();
-
-  AttributeDoublePtr aDoubleSecondAttr = std::dynamic_pointer_cast<ModelAPI_AttributeDouble>(
-                                                                theSecondAngleAttribute);
-  if (toFullAngle)
-    aDoubleSecondAttr->setValue(aValue*theNumberOfCopies);
-  else
-    aDoubleSecondAttr->setValue(aValue/theNumberOfCopies);
-}
-
 } // namespace SketchPlugin_Tools