0028747: Incorrect result of the section operation after edge refinement
[occt.git] / src / BRepTools / BRepTools_History.cxx
index 23867a6..0fee0a1 100644 (file)
@@ -112,17 +112,11 @@ void BRepTools_History::Remove(const TopoDS_Shape& theRemoved)
   // Apply the limitations.
   Standard_ASSERT_RETURN(IsSupportedType(theRemoved), myMsgUnsupportedType,);
 
-  if (myShapeToGenerated.UnBind(theRemoved))
-  {
-    Standard_ASSERT_INVOKE_(, myMsgGeneratedAndRemoved);
-  }
-
   if (myShapeToModified.UnBind(theRemoved))
   {
     Standard_ASSERT_INVOKE_(, myMsgModifiedAndRemoved);
   }
 
-  //
   myRemoved.Add(theRemoved);
 }
 
@@ -349,11 +343,6 @@ Standard_Boolean BRepTools_History::prepareGenerated(
   Standard_ASSERT_RETURN(theInitial.IsNull() ||
     IsSupportedType(theInitial), myMsgUnsupportedType, Standard_False);
 
-  if (myRemoved.Remove(theInitial))
-  {
-    Standard_ASSERT_INVOKE_(, myMsgGeneratedAndRemoved);
-  }
-
   if (myShapeToModified.IsBound(theInitial) &&
     myShapeToModified(theInitial).Remove(theGenerated))
   {