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:
@@ -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.
|
||||
//-------------------------------------------
|
||||
|
Reference in New Issue
Block a user