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:
@@ -220,8 +220,7 @@ ShapeAnalysis_FreeBounds::ShapeAnalysis_FreeBounds(const TopoDS_Shape& shape,
|
||||
aBox.SetGap(tolerance);
|
||||
aTreeFiller.Add(inbW, aBox);
|
||||
}
|
||||
Standard_Integer nbFill;
|
||||
nbFill = aTreeFiller.Fill();
|
||||
aTreeFiller.Fill();
|
||||
Standard_Integer nsel;
|
||||
|
||||
ShapeAnalysis_Edge sae; //szv#4:S4163:12Mar99 moved
|
||||
@@ -363,7 +362,6 @@ static void SplitWire(const TopoDS_Wire& wire,
|
||||
Standard_Boolean SearchBackward = Standard_True;
|
||||
|
||||
for(;;) {
|
||||
Standard_Integer ei = ces.Last(); //ei-edge index, number of current edge analyzed for connection
|
||||
Standard_Boolean found;
|
||||
TopoDS_Edge edge;
|
||||
TopoDS_Vertex lvertex;
|
||||
@@ -403,7 +401,6 @@ static void SplitWire(const TopoDS_Wire& wire,
|
||||
|
||||
//searching for connection among free edges
|
||||
found = Standard_False;
|
||||
ei = ces.Last();
|
||||
edge = sewd->Edge (ces.Last());
|
||||
lvertex = sae.LastVertex (edge);
|
||||
lpoint = BRep_Tool::Pnt (lvertex);
|
||||
|
Reference in New Issue
Block a user