From: ABV <> Date: Thu, 29 Dec 2011 11:27:05 +0000 (+0000) Subject: 0022874: Removing work-around in TObj_Model X-Git-Tag: V6_5_3_beta1~135 X-Git-Url: http://git.dev.opencascade.org/gitweb/?a=commitdiff_plain;h=d1ad9a8dddc4bc0ea082734b0a69ce5db8ea8856;p=occt-copy.git 0022874: Removing work-around in TObj_Model --- diff --git a/src/TObj/TObj_Model.cxx b/src/TObj/TObj_Model.cxx index 39c57a8ca0..4d96736ffc 100755 --- a/src/TObj/TObj_Model.cxx +++ b/src/TObj/TObj_Model.cxx @@ -85,21 +85,6 @@ void TObj_Model::CloseDocument (const Handle(TDocStd_Document)& theDoc) // Application const Handle(TObj_Application) anApplication = GetApplication(); - // cleanup CAF data - // PTV 21.11.2006: - //WARNING: It could be better to remove all attributes in OCAF document structure - // except TDocStd_Owner attribute. - // After all other is dead set to empty document to it and remove it from label - // ... - // But we still have previous implementation: - // - owner - Handle(TDocStd_Owner) owner; - if (theDoc->Main().Root().FindAttribute(TDocStd_Owner::GetID(), owner)) - { - Handle_TDocStd_Document empty; - owner->SetDocument(empty); - } - // just all other attributes theDoc->Main().Root().ForgetAllAttributes(Standard_True); anApplication->Close( theDoc );