mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-14 13:30:48 +03:00
0024510: Remove unused local variables
When warnings are enabled, compilers report lots of occurrences of unused local variables, which makes it harder to find other meaningful warnings. This commit does not fix all unused local variables. Fix new type conversion warning Code cleaned to avoid MSVC compiler warnings on unused function arguments. Several useless pieces of code are removed. Changes in IntTools_EdgeFace.cxx, Blend_Walking_1.gxx, Bnd_BoundSortBox.cxx, ProjLib_ProjectedCurve.cxx are reverted (separated to specific issue for more in-depth analysis).
This commit is contained in:
@@ -238,15 +238,14 @@ void AIS_InteractiveContext::DisplayedObjects(AIS_ListOfInteractive& aListOfIO,
|
||||
#endif
|
||||
|
||||
//parse all local contexts...
|
||||
#ifdef DEBUG
|
||||
Standard_Integer NbDisp;
|
||||
for(AIS_DataMapIteratorOfDataMapOfILC it1(myLocalContexts);it1.More();it1.Next()){
|
||||
const Handle(AIS_LocalContext)& LC = it1.Value();
|
||||
NbDisp = LC->DisplayedObjects(theMap);
|
||||
#ifdef DEBUG
|
||||
cout<<"\tIn Local Context "<<it1.Key()<<" : "<<NbDisp<<endl;
|
||||
#endif
|
||||
|
||||
}
|
||||
#endif
|
||||
Handle(AIS_InteractiveObject) curIO;
|
||||
Handle(Standard_Transient) Tr;
|
||||
for(TColStd_MapIteratorOfMapOfTransient it2(theMap);it2.More();it2.Next()){
|
||||
@@ -816,11 +815,11 @@ void AIS_InteractiveContext::Remove(const Handle(AIS_InteractiveObject)& anIObj,
|
||||
}
|
||||
else
|
||||
{
|
||||
Standard_Boolean WasInCtx = myLocalContexts(myCurLocalIndex)->Remove(anIObj);
|
||||
myLocalContexts(myCurLocalIndex)->Remove(anIObj);
|
||||
AIS_DataMapIteratorOfDataMapOfILC It(myLocalContexts);
|
||||
for (;It.More() ;It.Next()){
|
||||
if(It.Value()->AcceptErase())
|
||||
WasInCtx = It.Value()->Remove(anIObj);
|
||||
It.Value()->Remove(anIObj);
|
||||
|
||||
}
|
||||
// if(!WasInCtx)
|
||||
|
Reference in New Issue
Block a user