1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-04-09 18:50:54 +03:00

0007707: Unused static function CheckSubShape in the file XCAFDoc_ShapeTool.cxx

This commit is contained in:
EPA 2011-09-02 09:01:56 +00:00 committed by bugmaster
parent c66d7156b7
commit 1d07572ce1

View File

@ -978,17 +978,17 @@ void XCAFDoc_ShapeTool::UpdateAssembly (const TDF_Label& L) const
//purpose : //purpose :
//======================================================================= //=======================================================================
static Standard_Boolean CheckSubShape (const TopoDS_Shape &S, const TopoDS_Shape &sub) //static Standard_Boolean CheckSubShape (const TopoDS_Shape &S, const TopoDS_Shape &sub)
{ //{
if ( S.IsSame ( sub ) ) return Standard_True; // if ( S.IsSame ( sub ) ) return Standard_True;
//
if ( S.ShapeType() >= sub.ShapeType() ) return Standard_False; // if ( S.ShapeType() >= sub.ShapeType() ) return Standard_False;
//
for ( TopoDS_Iterator it(S); it.More(); it.Next() ) { // for ( TopoDS_Iterator it(S); it.More(); it.Next() ) {
if ( CheckSubShape ( it.Value(), sub ) ) return Standard_True; // if ( CheckSubShape ( it.Value(), sub ) ) return Standard_True;
} // }
return Standard_False; // return Standard_False;
} //}
//======================================================================= //=======================================================================
//function : IsSubShape //function : IsSubShape