Salome HOME
Correct processing of the fixed arc in PlaneGCS (issue #1280)
[modules/shaper.git] / src / SketchPlugin / SketchPlugin_Tools.cpp
index 28d78bbd490f38abe1d06345eb2aa1dd7118c098..82c5a3f93986c9c07d3857e797771ec59f7cdc52 100644 (file)
@@ -101,24 +101,4 @@ void findCoincidences(const FeaturePtr theStartCoin,
   }
 }
 
-void updateMultiAttribute(const AttributePtr& theFirstAngleAttribute,
-                          const AttributePtr& theSecondAngleAttribute,
-                          const int& theValue,
-                          const bool toMultiply)
-{
-  if (theValue == 0 || !theFirstAngleAttribute->isInitialized())
-    return;
-
-  AttributeDoublePtr aDoubleFirstAttr = std::dynamic_pointer_cast<ModelAPI_AttributeDouble>(
-                                                                theFirstAngleAttribute);
-  double aValue = aDoubleFirstAttr->value();
-
-  AttributeDoublePtr aDoubleSecondAttr = std::dynamic_pointer_cast<ModelAPI_AttributeDouble>(
-                                                                theSecondAngleAttribute);
-  if (toMultiply)
-    aDoubleSecondAttr->setValue(aValue*theValue);
-  else
-    aDoubleSecondAttr->setValue(aValue/theValue);
-}
-
 } // namespace SketchPlugin_Tools