Salome HOME
Meet the coding style (line length <= 100)
[modules/shaper.git] / src / SketchPlugin / SketchPlugin_Sketch.cpp
index 91fddccd708bade99ca94b5ec1bc8b51653dec3c..d1deff5364ac1e1f9369a33889243ee28db68c1b 100755 (executable)
@@ -140,10 +140,6 @@ std::shared_ptr<ModelAPI_Feature> SketchPlugin_Sketch::addFeature(std::string th
    // set as current also after it becomes sub to set correctly enabled for other sketch subs
   document()->setCurrentFeature(aNew, false);
 
-  static Events_Loop* aLoop = Events_Loop::loop();
-  static Events_ID aDeleteEvent = aLoop->eventByName(EVENT_OBJECT_DELETED);
-  aLoop->flush(aDeleteEvent);
-
   return aNew;
 }