mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-19 13:40:49 +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:
@@ -213,7 +213,7 @@ void ReduceVertexTolerance (const TopoDS_Shape& aS)
|
||||
void ProcessEdge(const TopoDS_Edge& aE, const Standard_Real aTolTreshold)
|
||||
{
|
||||
Standard_Integer i, aNb=23;
|
||||
Standard_Real aTolE, aD2, aTolMax2, aT1, aT2, aT, dT;
|
||||
Standard_Real aD2, aTolMax2, aT1, aT2, aT, dT;
|
||||
gp_Pnt aPC3D, aP3D;
|
||||
gp_Pnt2d aPC2D;
|
||||
|
||||
@@ -277,7 +277,6 @@ void ProcessEdge(const TopoDS_Edge& aE, const Standard_Real aTolTreshold)
|
||||
return;
|
||||
}
|
||||
//
|
||||
aTolE =BRep_Tool::Tolerance(aE);
|
||||
//
|
||||
aTolMax2=sqrt(aTolMax2);
|
||||
|
||||
@@ -296,7 +295,7 @@ void ProcessVertex(const TopoDS_Vertex& aV,
|
||||
const TopTools_ListOfShape& aLE,
|
||||
const TopTools_ListOfShape& aLF)
|
||||
{
|
||||
Standard_Real aTol, aTol2, aD2, aTolMax2, aTolE, aParam;
|
||||
Standard_Real aTol, aD2, aTolMax2, aTolE, aParam;
|
||||
gp_Pnt aPC3D;
|
||||
gp_Pnt2d aPC2D;
|
||||
TopAbs_Orientation anOrV;
|
||||
@@ -312,7 +311,6 @@ void ProcessVertex(const TopoDS_Vertex& aV,
|
||||
Handle(BRep_TVertex)& TV = *((Handle(BRep_TVertex)*) &aV.TShape());
|
||||
const gp_Pnt& aPV3D = TV->Pnt();
|
||||
aTol =BRep_Tool::Tolerance(aV);
|
||||
aTol2=aTol*aTol;
|
||||
//
|
||||
anIt.Initialize(aLE);
|
||||
for (; anIt.More(); anIt.Next()) {
|
||||
|
Reference in New Issue
Block a user