0024845: CLang warnings -Wunused-variable
authorski <ski@opencascade.com>
Thu, 17 Apr 2014 11:48:25 +0000 (15:48 +0400)
committerabv <abv@opencascade.com>
Thu, 24 Apr 2014 11:43:25 +0000 (15:43 +0400)
Unused variables were removed.

src/AIS/AIS_AngleDimension.cxx
src/AIS/AIS_Dimension.cxx
src/Draw/Draw_Window.cxx
src/Draw/Draw_Window_1.mm
src/ShapeFix/ShapeFix_IntersectionTool.cxx

index bf01091..5f543d0 100644 (file)
@@ -1242,10 +1242,6 @@ void AIS_AngleDimension::AdjustParameters (const gp_Pnt& theTextPos,
   Handle(Prs3d_DimensionAspect) aDimensionAspect = myDrawer->DimensionAspect();
   Standard_Real anArrowLength = aDimensionAspect->ArrowAspect()->Length();
 
-  // Compute flyout direction vector.
-  gp_Dir aPlaneNormal = GetPlane().Axis().Direction();
-  gp_Dir aTargetPointsDir = gce_MakeDir (myFirstPoint, mySecondPoint);
-
   // Build circle with radius that is equal to distance from text position to the center point.
   Standard_Real aRadius = gp_Vec (myCenterPoint, theTextPos).Magnitude();
 
index d8da604..23b23ee 100755 (executable)
@@ -1532,8 +1532,6 @@ void AIS_Dimension::FitTextAlignmentForLinear (const gp_Pnt& theFirstPoint,
 
   Handle(Prs3d_DimensionAspect) aDimensionAspect = myDrawer->DimensionAspect();
 
-  gp_Lin aDimensionLine = gce_MakeLin (aLineBegPoint, aLineEndPoint);
-
   // For extensions we need to know arrow size, text size and extension size: get it from aspect
   Quantity_Length anArrowLength = aDimensionAspect->ArrowAspect()->Length();
 
index a6287b0..8d102b8 100644 (file)
@@ -179,8 +179,6 @@ static Standard_Boolean tty;        /* Non-zero means standard input is a
                                  * terminal-like device.  Zero means it's
                                  * a file. */
 
-static unsigned long thePixels[MAXCOLOR];
-
 Standard_Integer Draw_WindowScreen = 0;
 Standard_Boolean Draw_BlackBackGround = Standard_True;
 
@@ -194,6 +192,8 @@ Draw_Window* Draw_Window::firstWindow = NULL;
 #include <X11/Xutil.h>
 #include <Aspect_DisplayConnection.hxx>
 
+static unsigned long thePixels[MAXCOLOR];
+
 Display* Draw_WindowDisplay = NULL;
 Colormap Draw_WindowColorMap;
 static Handle(Aspect_DisplayConnection) Draw_DisplayConnection;
index 6e01874..bef2dc8 100644 (file)
@@ -585,7 +585,6 @@ void GetNextEvent (Standard_Boolean  theWait,
   theWindowNumber   = [aWindow windowNumber];
 
   NSPoint aMouseLoc = [aView convertPoint: [anEvent locationInWindow] fromView: nil];
-  NSRect  aBounds   = [aView bounds];
 
   theX = Standard_Integer (aMouseLoc.x);
   theY = Standard_Integer (aMouseLoc.y);
index 7b0edb1..57df2f5 100644 (file)
@@ -835,7 +835,7 @@ Standard_Boolean ShapeFix_IntersectionTool::FixSelfIntersectWire
 
   // step 2 : intersection of non-adjacent edges
   ShapeFix_DataMapOfShapeBox2d boxes;
-  Bnd_Box2d aTotalBox = CreateBoxes2d(sewd,face,boxes);
+  (void)CreateBoxes2d(sewd,face,boxes);
   Handle(ShapeAnalysis_Surface) sas = new ShapeAnalysis_Surface(BRep_Tool::Surface(face));
 
   NbSplit=0;