From: nds Date: Wed, 4 Mar 2015 09:40:04 +0000 (+0300) Subject: The flushCreated/flushUpdated are obsolete and nobody uses them. X-Git-Tag: V_1.1.0~147^2~6 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=676e0178fdedf35ba607ef9d4f02d871dd06fa28;p=modules%2Fshaper.git The flushCreated/flushUpdated are obsolete and nobody uses them. --- diff --git a/src/ModuleBase/ModuleBase_Operation.cpp b/src/ModuleBase/ModuleBase_Operation.cpp index 459af0553..6119c42c8 100644 --- a/src/ModuleBase/ModuleBase_Operation.cpp +++ b/src/ModuleBase/ModuleBase_Operation.cpp @@ -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; } diff --git a/src/ModuleBase/ModuleBase_Operation.h b/src/ModuleBase/ModuleBase_Operation.h index f43ed76e1..45082511a 100644 --- a/src/ModuleBase/ModuleBase_Operation.h +++ b/src/ModuleBase/ModuleBase_Operation.h @@ -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