]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
The flushCreated/flushUpdated are obsolete and nobody uses them.
authornds <natalia.donis@opencascade.com>
Wed, 4 Mar 2015 09:40:04 +0000 (12:40 +0300)
committernds <natalia.donis@opencascade.com>
Wed, 4 Mar 2015 09:40:04 +0000 (12:40 +0300)
src/ModuleBase/ModuleBase_Operation.cpp
src/ModuleBase/ModuleBase_Operation.h

index 459af0553e89d741c535125a0c1013a4a416b1aa..6119c42c80fd91df36bb17afca727d12cfeb861f 100644 (file)
@@ -80,16 +80,6 @@ bool ModuleBase_Operation::canBeCommitted() const
   return isValid();
 }
 
-void ModuleBase_Operation::flushUpdated()
-{
-  Events_Loop::loop()->flush(Events_Loop::eventByName(EVENT_OBJECT_UPDATED));
-}
-
-void ModuleBase_Operation::flushCreated()
-{
-  Events_Loop::loop()->flush(Events_Loop::eventByName(EVENT_OBJECT_CREATED));
-}
-
 FeaturePtr ModuleBase_Operation::createFeature(const bool theFlushMessage)
 {
   if (myParentFeature.get()) {
@@ -111,7 +101,7 @@ FeaturePtr ModuleBase_Operation::createFeature(const bool theFlushMessage)
   }
 
   if (theFlushMessage)
-    flushCreated();
+    Events_Loop::loop()->flush(Events_Loop::eventByName(EVENT_OBJECT_CREATED));
   return myFeature;
 }
 
index f43ed76e18752ad394676cb25c6d03e983e74639..45082511a531d80517adc94f349eb95f16d53784 100644 (file)
@@ -210,12 +210,6 @@ signals:
   /// Virtual method called after operation resume (see resume() method for more description)
   virtual void resumeOperation() {}
 
-  /// Send update message by loop
-  void flushUpdated();
-
-  /// Send created message by loop
-  void flushCreated();
-
   /// Creates an operation new feature
   /// \param theFlushMessage the flag whether the create message should be flushed
   /// \returns the created feature