]> OCCT Git - occt-copy.git/commitdiff
0022874: Removing work-around in TObj_Model
authorABV <>
Thu, 29 Dec 2011 11:27:05 +0000 (11:27 +0000)
committerbugmaster <bugmaster@opencascade.com>
Mon, 5 Mar 2012 15:31:51 +0000 (19:31 +0400)
src/TObj/TObj_Model.cxx

index 39c57a8ca0f35df38b92047696b482c13ae3e9f2..4d96736ffcab402e500c943a496079961fc83e34 100755 (executable)
@@ -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 );