From 8f8fa97696a167269fe7ae61618a6baeed9efd24 Mon Sep 17 00:00:00 2001 From: abv Date: Mon, 10 Dec 2012 16:53:05 +0400 Subject: [PATCH] 0023604: Uninitialized variables in debug mode Removed #ifndef DEB ... #else ... #endif directives where the variables were being initialized only in release mode. Removed unused part of code. Signed-off-by: skv --- src/BRepCheck/BRepCheck_Wire.cxx | 8 -------- 1 file changed, 8 deletions(-) diff --git a/src/BRepCheck/BRepCheck_Wire.cxx b/src/BRepCheck/BRepCheck_Wire.cxx index 057959d941..6b26e1033c 100755 --- a/src/BRepCheck/BRepCheck_Wire.cxx +++ b/src/BRepCheck/BRepCheck_Wire.cxx @@ -548,11 +548,7 @@ BRepCheck_Status BRepCheck_Wire::Orientation(const TopoDS_Face& F, theOstat = BRepCheck_NoError; TopoDS_Vertex VF,VL; -#ifndef DEB TopAbs_Orientation orient, ortmp = TopAbs_FORWARD; -#else - TopAbs_Orientation orient, ortmp; -#endif TopTools_ListOfShape ledge, ListOfPassedEdge; TopExp_Explorer exp,vte; TopTools_MapOfShape mapS; @@ -1492,11 +1488,7 @@ static TopAbs_Orientation GetOrientation(const TopTools_MapOfShape& mapE, Standard_Real MinAngle, MaxAngle, angle; Standard_Real gpResolution=gp::Resolution(); TopAbs_Orientation aVOrientation, aEdgOrientation; -#ifndef DEB Standard_Real dist2d = 0, p = 0; -#else - Standard_Real dist2d, p; -#endif Standard_Real f, l, parpiv; Standard_Real tolv = BRep_Tool::Tolerance(V); BRepAdaptor_Surface Ads(F,Standard_False); // no restriction