mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-09 13:22:24 +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:
@@ -526,16 +526,9 @@ Standard_Boolean MakeFacesNonSec(const Standard_Integer theI
|
||||
Standard_Integer aFaceIndex = (fit == 1) ? theFaceIndex1 : theFaceIndex2;
|
||||
TopoDS_Shape aFace = theDS->Shape(aFaceIndex);
|
||||
TopAbs_Orientation aFaceOri = aFace.Orientation();
|
||||
TopAbs_Orientation anEdgeOri = TopAbs_FORWARD;
|
||||
aFace.Orientation(TopAbs_FORWARD);
|
||||
|
||||
TopExp_Explorer anExpE(aFace, TopAbs_EDGE);
|
||||
const TopoDS_Shape& aCheckEdge = (fit == 1) ? aE1 : aE2;
|
||||
|
||||
for(; anExpE.More(); anExpE.Next()) {
|
||||
if(aCheckEdge.IsSame(anExpE.Current()))
|
||||
anEdgeOri = anExpE.Current().Orientation();
|
||||
}
|
||||
|
||||
if(bHasNewEdge) {
|
||||
aNewEdge.Orientation(TopAbs_FORWARD);
|
||||
|
Reference in New Issue
Block a user