1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-09-08 14:17:06 +03:00

0024172: Compiler warnings 'unreacheable code' and 'unreferenced local function' in OCAF

Files _Sample.cxx containing unused sample code are removed from several OCAF packages.
Cycles for() with body always ending with 'break' are replaced by equivalent if() statements.
This commit is contained in:
szy
2013-09-30 15:53:00 +04:00
committed by bugmaster
parent eb4320f2d9
commit b2197f9397
12 changed files with 16 additions and 1223 deletions

View File

@@ -314,12 +314,10 @@ void TNaming_Localizer::GoBack (const TopoDS_Shape& S,
//-----------------------------------------------------------
// Pas d'ascendants => Recherche et exploration du contenant
//----------------------------------------------------------
TDF_Label Father = Lab.Father();
const TDF_Label& Father = Lab.Father();
TNaming_Iterator itLab(Father);
for (; itLab.More(); itLab.Next()) {
Sol = itLab.OldShape();
break;
}
if(itLab.More())
Sol = itLab.OldShape();
//-------------------------------------------
// Recherche des ancetres dans des features.
//-------------------------------------------