Salome HOME
Revert "Merge branch 'Pre_2.8.0_development'"
[modules/shaper.git] / src / ModelAPI / ModelAPI_Events.cpp
index 9368211e04a3bc027000042cad93142471b8562e..c660afca2965748dd5c759be5b64ae5ba3e4ed73 100644 (file)
@@ -21,8 +21,6 @@
 #include <ModelAPI.h>
 #include <ModelAPI_Events.h>
 
-#include <GeomAPI_Pnt2d.h>
-
 ModelAPI_ObjectUpdatedMessage::ModelAPI_ObjectUpdatedMessage(const Events_ID theID,
                                                              const void* theSender)
     : Events_MessageGroup(theID, theSender)
@@ -340,44 +338,3 @@ const std::set<ObjectPtr>& ModelAPI_SolverFailedMessage::objects() const
 {
   return myObjects;
 }
-
-
-// =====   ModelAPI_ObjectMovedMessage   =====
-ModelAPI_ObjectMovedMessage::ModelAPI_ObjectMovedMessage(const void* theSender)
-  : Events_Message(Events_Loop::eventByName(EVENT_OBJECT_MOVED), theSender)
-{
-}
-
-void ModelAPI_ObjectMovedMessage::setMovedObject(const ObjectPtr& theMovedObject)
-{
-  myMovedObject = theMovedObject;
-  myMovedAttribute = AttributePtr();
-}
-
-void ModelAPI_ObjectMovedMessage::setMovedAttribute(const AttributePtr& theMovedAttribute)
-{
-  myMovedAttribute = theMovedAttribute;
-  myMovedObject = ObjectPtr();
-}
-
-void ModelAPI_ObjectMovedMessage::setOriginalPosition(double theX, double theY)
-{
-  myOriginalPosition = std::shared_ptr<GeomAPI_Pnt2d>(new GeomAPI_Pnt2d(theX, theY));
-}
-
-void ModelAPI_ObjectMovedMessage::setOriginalPosition(
-    const std::shared_ptr<GeomAPI_Pnt2d>& thePoint)
-{
-  myOriginalPosition = thePoint;
-}
-
-void ModelAPI_ObjectMovedMessage::setCurrentPosition(double theX, double theY)
-{
-  myCurrentPosition = std::shared_ptr<GeomAPI_Pnt2d>(new GeomAPI_Pnt2d(theX, theY));
-}
-
-void ModelAPI_ObjectMovedMessage::setCurrentPosition(
-    const std::shared_ptr<GeomAPI_Pnt2d>& thePoint)
-{
-  myCurrentPosition = thePoint;
-}