Salome HOME
Issue #1404 Random crash with Shaper. REDISPLAY is not flushed in deleteFeature....
[modules/shaper.git] / src / PartSetPlugin / PartSetPlugin_Part.cpp
index 31759862f1fe20f53d1bc72133dc191f94c8772e..c40a0eadf3d87fec1a2374001f2e0762cba98d77 100644 (file)
@@ -108,10 +108,4 @@ bool PartSetPlugin_Part::isSub(ObjectPtr theObject) const
 
 void PartSetPlugin_Part::removeFeature(std::shared_ptr<ModelAPI_Feature> theFeature)
 {
-  ResultPartPtr aResult = std::dynamic_pointer_cast<ModelAPI_ResultPart>(firstResult());
-  if (aResult.get()) {
-    DocumentPtr aDoc = aResult->partDoc();
-    if (aDoc.get() && aDoc->isOpened())
-      aDoc->removeFeature(theFeature);
-  }
 }