0024510: Remove unused local variables
authorDenis Barbier <bouzim@gmail.com>
Thu, 9 Jan 2014 08:20:06 +0000 (12:20 +0400)
committerbugmaster <bugmaster@opencascade.com>
Thu, 9 Jan 2014 08:21:51 +0000 (12:21 +0400)
commit96a95605cd595111b3172e4ce3049208e2731467
tree105392e189c7f77a442800cd2eadcffd370cef76
parentb467a8703647a945ee2ccf960be4a168eba44e67
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).
230 files changed:
src/AIS/AIS_Dimension.cxx
src/AIS/AIS_EqualDistanceRelation.cxx
src/AIS/AIS_InteractiveContext.cxx
src/AIS/AIS_LocalContext.cxx
src/Adaptor3d/Adaptor3d_CurveOnSurface.cxx
src/AdvApp2Var/AdvApp2Var_ApproxAFunc2Var.cxx
src/AdvApp2Var/AdvApp2Var_ApproxF2var.cxx
src/AdvApp2Var/AdvApp2Var_MathBase.cxx
src/AdvApp2Var/AdvApp2Var_Patch.cxx
src/AdvApp2Var/AdvApp2Var_SysBase.cxx
src/AdvApp2Var/AdvApp2Var_SysBase.hxx
src/AppParCurves/AppParCurves.cxx
src/AppParCurves/AppParCurves_LeastSquare.gxx
src/AppParCurves/AppParCurves_ResolConstraint.gxx
src/Approx/Approx_ComputeLine.gxx
src/Aspect/Aspect_ColorScale.cxx
src/BOPAlgo/BOPAlgo_BuilderSolid.cxx
src/BOPAlgo/BOPAlgo_Builder_2Cnt.hxx
src/BOPAlgo/BOPAlgo_Builder_3.cxx
src/BOPAlgo/BOPAlgo_PaveFiller_1.cxx
src/BOPAlgo/BOPAlgo_PaveFiller_6.cxx
src/BOPAlgo/BOPAlgo_PaveFiller_7.cxx
src/BOPAlgo/BOPAlgo_PaveFiller_8.cxx
src/BOPDS/BOPDS_IteratorSI.cxx
src/BOPInt/BOPInt_Context.cxx
src/BOPTest/BOPTest_PartitionCommands.cxx
src/BOPTest/BOPTest_TolerCommands.cxx
src/BOPTools/BOPTools_AlgoTools.cxx
src/BOPTools/BOPTools_AlgoTools3D.cxx
src/BOPTools/BOPTools_AlgoTools_1.cxx
src/BRepAdaptor/BRepAdaptor_CompCurve.cxx
src/BRepBlend/BRepBlend_CurvPointRadInv.cxx
src/BRepBlend/BRepBlend_RstRstConstRad.cxx
src/BRepBlend/BRepBlend_RstRstEvolRad.cxx
src/BRepBlend/BRepBlend_RstRstLineBuilder.cxx
src/BRepBlend/BRepBlend_SurfPointEvolRadInv.cxx
src/BRepCheck/BRepCheck_Edge.cxx
src/BRepCheck/BRepCheck_Wire.cxx
src/BRepFeat/BRepFeat.cxx
src/BRepFeat/BRepFeat_Builder.cxx
src/BRepFeat/BRepFeat_Form.cxx
src/BRepFeat/BRepFeat_MakeLinearForm.cxx
src/BRepFeat/BRepFeat_RibSlot.cxx
src/BRepFill/BRepFill_Sweep.cxx
src/BRepFill/BRepFill_TrimShellCorner.cxx
src/BRepFill/BRepFill_TrimSurfaceTool.cxx
src/BRepGProp/BRepGProp.cxx
src/BRepOffset/BRepOffset_Tool.cxx
src/BRepOffsetAPI/BRepOffsetAPI_MiddlePath.cxx
src/BRepSweep/BRepSweep_Rotation.cxx
src/BRepTest/BRepTest_BasicCommands.cxx
src/BRepTest/BRepTest_CurveCommands.cxx
src/BSplCLib/BSplCLib.cxx
src/BiTgte/BiTgte_Blend.cxx
src/Bisector/Bisector_BisecAna.cxx
src/Bisector/Bisector_BisecPC.cxx
src/Blend/Blend_CSWalking_2.gxx
src/BlendFunc/BlendFunc_Chamfer.cxx
src/BlendFunc/BlendFunc_ConstRad.cxx
src/BlendFunc/BlendFunc_EvolRad.cxx
src/CSLib/CSLib_Class2d.cxx
src/ChFi2d/ChFi2d_Builder.cxx
src/ChFi3d/ChFi3d_Builder_2.cxx
src/ChFi3d/ChFi3d_Builder_C1.cxx
src/ChFi3d/ChFi3d_FilBuilder.cxx
src/ChFiDS/ChFiDS_FilSpine.cxx
src/ChFiKPart/ChFiKPart_ComputeData_FilPlnCyl.cxx
src/DDataStd/DDataStd_DrawDriver.cxx
src/Draw/Draw_VariableCommands.cxx
src/Draw/Draw_Window.cxx
src/DrawDim/DrawDim_Angle.cxx
src/DrawDim/DrawDim_PlanarAngle.cxx
src/DrawTrSurf/DrawTrSurf.cxx
src/DsgPrs/DsgPrs_DiameterPresentation.cxx
src/ExprIntrp/ExprIntrp_yaccintrf.cxx
src/Extrema/Extrema_ExtElC2d.cxx
src/GCPnts/GCPnts_TangentialDeflection.gxx
src/GCPnts/GCPnts_UniformAbscissa.gxx
src/GProp/GProp_SGProps.gxx
src/GccAna/GccAna_Circ2d3Tan_2.cxx
src/GccAna/GccAna_Circ2d3Tan_5.cxx
src/GccAna/GccAna_Circ2d3Tan_6.cxx
src/GccAna/GccAna_Circ2d3Tan_8.cxx
src/GccAna/GccAna_Circ2dTanOnRad.cxx
src/GccAna/GccAna_Lin2dTanPer.cxx
src/GccGeo/GccGeo_Circ2d2TanOn.gxx
src/GccIter/GccIter_Circ2d2TanOn.gxx
src/Geom/Geom_BSplineSurface.cxx
src/Geom2dConvert/Geom2dConvert.cxx
src/GeomConvert/GeomConvert.cxx
src/GeomConvert/GeomConvert_1.cxx
src/GeomFill/GeomFill_ConstrainedFilling.cxx
src/GeomFill/GeomFill_CorrectedFrenet.cxx
src/GeomFill/GeomFill_EvolvedSection.cxx
src/GeomFill/GeomFill_LocationGuide.cxx
src/GeomFill/GeomFill_Pipe.cxx
src/GeomFill/GeomFill_Sweep.cxx
src/GeomFill/GeomFill_TgtOnCoons.cxx
src/GeomFill/GeomFill_UniformSection.cxx
src/GeomInt/GeomInt_IntSS_1.cxx
src/GeometryTest/GeometryTest_APICommands.cxx
src/GeometryTest/GeometryTest_CurveCommands.cxx
src/GeometryTest/GeometryTest_FairCurveCommands.cxx
src/GeometryTest/GeometryTest_SurfaceCommands.cxx
src/GeomliteTest/GeomliteTest_SurfaceCommands.cxx
src/HLRBRep/HLRBRep_Hider.cxx
src/HLRBRep/HLRBRep_PolyAlgo.cxx
src/HLRTest/HLRTest.cxx
src/IFGraph/IFGraph_Articulations.cxx
src/IFSelect/IFSelect_BasicDumper.cxx
src/IFSelect/IFSelect_ListEditor.cxx
src/IFSelect/IFSelect_WorkSession.cxx
src/IGESConvGeom/IGESConvGeom.cxx
src/IntAna/IntAna_IntQuadQuad.cxx
src/IntAna/IntAna_QuadQuadGeo.cxx
src/IntAna/IntAna_Quadric.cxx
src/IntCurve/IntCurve_IntPolyPolyGen.gxx
src/IntCurve/IntCurve_Polygon2dGen.gxx
src/IntImpParGen/IntImpParGen_Intersector.gxx
src/IntPatch/IntPatch_ALineToWLine.cxx
src/IntPatch/IntPatch_ImpImpIntersection_2.gxx
src/IntPatch/IntPatch_ImpImpIntersection_4.gxx
src/IntPatch/IntPatch_ImpImpIntersection_5.gxx
src/IntPatch/IntPatch_ImpPrmIntersection.cxx
src/IntPatch/IntPatch_LineConstructor.cxx
src/IntPatch/IntPatch_Polyhedron.cxx
src/IntPatch/IntPatch_PrmPrmIntersection.cxx
src/IntPatch/IntPatch_RLine.cxx
src/IntPatch/IntPatch_RstInt.cxx
src/IntPatch/IntPatch_WLine.cxx
src/IntPolyh/IntPolyh_MaillageAffinage.cxx
src/IntStart/IntStart_SearchOnBoundaries.gxx
src/IntTools/IntTools.cxx
src/IntTools/IntTools_BeanBeanIntersector.cxx
src/IntTools/IntTools_EdgeEdge.cxx
src/IntTools/IntTools_EdgeEdge_1.cxx
src/IntTools/IntTools_EdgeFace.cxx
src/IntWalk/IntWalk_PWalking_1.gxx
src/Intf/Intf_InterferencePolygonPolyhedron.gxx
src/Intf/Intf_InterferencePolyhedron.gxx
src/LDOM/LDOMParser.cxx
src/LocOpe/LocOpe.cxx
src/LocOpe/LocOpe_BuildWires.cxx
src/LocOpe/LocOpe_Generator.cxx
src/LocOpe/LocOpe_SplitDrafts.cxx
src/MAT2d/MAT2d_Circuit.cxx
src/MAT2d/MAT2d_Tool2d.cxx
src/MeshTest/MeshTest.cxx
src/MeshVS/MeshVS_ElementalColorPrsBuilder.cxx
src/NCollection/NCollection_BaseAllocator.cxx
src/OSD/OSD.cxx
src/OpenGl/OpenGl_Trihedron.cxx
src/Primitives/Primitives_Wedge.gxx
src/ProjLib/ProjLib_ComputeApprox.cxx
src/ProjLib/ProjLib_ComputeApproxOnPolarSurface.cxx
src/QABugs/QABugs_2.cxx
src/QABugs/QABugs_3.cxx
src/QABugs/QABugs_9.cxx
src/QANewModTopOpe/QANewModTopOpe_Tools.cxx
src/RWHeaderSection/RWHeaderSection_RWFileDescription.cxx
src/RWHeaderSection/RWHeaderSection_RWFileName.cxx
src/RWStepDimTol/RWStepDimTol_RWCommonDatum.cxx
src/RWStepRepr/RWStepRepr_RWCompositeShapeAspect.cxx
src/RWStepRepr/RWStepRepr_RWDerivedShapeAspect.cxx
src/RWStepRepr/RWStepRepr_RWExtension.cxx
src/ShapeAnalysis/ShapeAnalysis_FreeBounds.cxx
src/ShapeUpgrade/ShapeUpgrade_WireDivide.cxx
src/StlTransfer/StlTransfer.cxx
src/TDF/TDF_CopyLabel.cxx
src/TDF/TDF_Delta.cxx
src/TNaming/TNaming.cxx
src/TPrsStd/TPrsStd_ConstraintTools.cxx
src/TestTopOpe/TestTopOpe_CORCommands.cxx
src/TestTopOpe/TestTopOpe_HDSCommands.cxx
src/TestTopOpe/TestTopOpe_OtherCommands.cxx
src/TopOpeBRep/TopOpeBRep_EdgesFiller.cxx
src/TopOpeBRep/TopOpeBRep_EdgesIntersector.cxx
src/TopOpeBRep/TopOpeBRep_FaceEdgeFiller.cxx
src/TopOpeBRep/TopOpeBRep_FaceEdgeIntersector.cxx
src/TopOpeBRep/TopOpeBRep_FacesIntersector.cxx
src/TopOpeBRep/TopOpeBRep_kpart.cxx
src/TopOpeBRep/TopOpeBRep_mergePDS.cxx
src/TopOpeBRep/TopOpeBRep_vpr.cxx
src/TopOpeBRep/TopOpeBRep_vprclo.cxx
src/TopOpeBRepBuild/TopOpeBRepBuild_BuildEdges.cxx
src/TopOpeBRepBuild/TopOpeBRepBuild_Builder1.cxx
src/TopOpeBRepBuild/TopOpeBRepBuild_BuilderON.cxx
src/TopOpeBRepBuild/TopOpeBRepBuild_CorrectFace2d.cxx
src/TopOpeBRepBuild/TopOpeBRepBuild_FREGU.cxx
src/TopOpeBRepBuild/TopOpeBRepBuild_FuseFace.cxx
src/TopOpeBRepBuild/TopOpeBRepBuild_Grid.cxx
src/TopOpeBRepBuild/TopOpeBRepBuild_GridEE.cxx
src/TopOpeBRepBuild/TopOpeBRepBuild_GridFF.cxx
src/TopOpeBRepBuild/TopOpeBRepBuild_GridSS.cxx
src/TopOpeBRepBuild/TopOpeBRepBuild_KPart.cxx
src/TopOpeBRepBuild/TopOpeBRepBuild_PaveSet.cxx
src/TopOpeBRepBuild/TopOpeBRepBuild_SREGU.cxx
src/TopOpeBRepBuild/TopOpeBRepBuild_SplitEdge.hxx
src/TopOpeBRepBuild/TopOpeBRepBuild_Tools.cxx
src/TopOpeBRepBuild/TopOpeBRepBuild_Tools2d.cxx
src/TopOpeBRepBuild/TopOpeBRepBuild_VertexInfo.cxx
src/TopOpeBRepBuild/TopOpeBRepBuild_WireEdgeSet.cxx
src/TopOpeBRepBuild/TopOpeBRepBuild_ffsfs.cxx
src/TopOpeBRepBuild/TopOpeBRepBuild_kpkole.cxx
src/TopOpeBRepDS/TopOpeBRepDS_Dumper.cxx
src/TopOpeBRepDS/TopOpeBRepDS_EIR.cxx
src/TopOpeBRepDS/TopOpeBRepDS_EXPORT.cxx
src/TopOpeBRepDS/TopOpeBRepDS_EdgeInterferenceTool.cxx
src/TopOpeBRepDS/TopOpeBRepDS_FIR.cxx
src/TopOpeBRepDS/TopOpeBRepDS_FilterFaceInterferences.cxx
src/TopOpeBRepDS/TopOpeBRepDS_HDataStructure.cxx
src/TopOpeBRepDS/TopOpeBRepDS_ProcessEdgeInterferences.cxx
src/TopOpeBRepDS/TopOpeBRepDS_ProcessFaceInterferences.cxx
src/TopOpeBRepTool/TopOpeBRepTool_REGUS.cxx
src/TopOpeBRepTool/TopOpeBRepTool_ShapeTool.cxx
src/TopOpeBRepTool/TopOpeBRepTool_TOOL.cxx
src/Transfer/Transfer_TransferInput.cxx
src/Transfer/Transfer_TransferProcess.gxx
src/Units/Units_Sentence.cxx
src/V3d/V3d_PerspectiveView.cxx
src/ViewerTest/ViewerTest_FilletCommands.cxx
src/ViewerTest/ViewerTest_ObjectCommands.cxx
src/ViewerTest/ViewerTest_RelationCommands.cxx
src/Visual3d/Visual3d_ViewManager.cxx
src/math/math_BracketedRoot.cxx
src/math/math_FunctionAllRoots.cxx
src/math/math_FunctionRoot.cxx
src/math/math_Powell.cxx
src/math/math_Recipes.cxx
src/math/math_TrigonometricFunctionRoots.cxx