X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FPartSetPlugin%2FPartSetPlugin_Part.cpp;h=c40a0eadf3d87fec1a2374001f2e0762cba98d77;hb=f2ced587983e4e9e82c0d16dff6447fb01a5beab;hp=31759862f1fe20f53d1bc72133dc191f94c8772e;hpb=a850c6cae275c15f34677dc625ea98606ae7773f;p=modules%2Fshaper.git diff --git a/src/PartSetPlugin/PartSetPlugin_Part.cpp b/src/PartSetPlugin/PartSetPlugin_Part.cpp index 31759862f..c40a0eadf 100644 --- a/src/PartSetPlugin/PartSetPlugin_Part.cpp +++ b/src/PartSetPlugin/PartSetPlugin_Part.cpp @@ -108,10 +108,4 @@ bool PartSetPlugin_Part::isSub(ObjectPtr theObject) const void PartSetPlugin_Part::removeFeature(std::shared_ptr theFeature) { - ResultPartPtr aResult = std::dynamic_pointer_cast(firstResult()); - if (aResult.get()) { - DocumentPtr aDoc = aResult->partDoc(); - if (aDoc.get() && aDoc->isOpened()) - aDoc->removeFeature(theFeature); - } }