mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-14 13:30:48 +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:
@@ -661,14 +661,9 @@ TColStd_Array2OfReal TMap_Matrix_Inv (0,3,0,3);
|
||||
|
||||
Standard_Real Dx, Dy, Ratio;
|
||||
Visual3d_SetIteratorOfSetOfView MyIterator(MyDefinedView);
|
||||
Standard_Integer j;
|
||||
|
||||
Standard_Integer stop = 0;
|
||||
|
||||
Standard_Boolean BResult;
|
||||
|
||||
j = MyDefinedView.Extent ();
|
||||
|
||||
while ((! stop) && (MyIterator.More ())) {
|
||||
if (TheCView.ViewId ==
|
||||
(MyIterator.Value ())->Identification ()) {
|
||||
@@ -684,10 +679,10 @@ Standard_Boolean BResult;
|
||||
}
|
||||
|
||||
// View Mapping Transformation and View Clip, inversion
|
||||
BResult = Aspect::Inverse (TMap_Matrix, TMap_Matrix_Inv);
|
||||
Aspect::Inverse (TMap_Matrix, TMap_Matrix_Inv);
|
||||
|
||||
// View Orientation Transformation, inversion
|
||||
BResult = Aspect::Inverse (TOri_Matrix, TOri_Matrix_Inv);
|
||||
Aspect::Inverse (TOri_Matrix, TOri_Matrix_Inv);
|
||||
|
||||
// (AU, AV) : Device Coordinate Space
|
||||
// DCS -> NPCS Normalized Projection Coordinate Space
|
||||
@@ -798,14 +793,9 @@ TColStd_Array2OfReal TMap_Matrix_Inv (0,3,0,3);
|
||||
|
||||
Standard_Real Dx, Dy, Ratio;
|
||||
Visual3d_SetIteratorOfSetOfView MyIterator(MyDefinedView);
|
||||
Standard_Integer j;
|
||||
|
||||
Standard_Integer stop = 0;
|
||||
|
||||
Standard_Boolean BResult;
|
||||
|
||||
j = MyDefinedView.Extent ();
|
||||
|
||||
while ((! stop) && (MyIterator.More ())) {
|
||||
if (TheCView.ViewId ==
|
||||
(MyIterator.Value ())->Identification ()) {
|
||||
@@ -821,10 +811,10 @@ Standard_Boolean BResult;
|
||||
}
|
||||
|
||||
// View Mapping Transformation and View Clip, inversion
|
||||
BResult = Aspect::Inverse (TMap_Matrix, TMap_Matrix_Inv);
|
||||
Aspect::Inverse (TMap_Matrix, TMap_Matrix_Inv);
|
||||
|
||||
// View Orientation Transformation, inversion
|
||||
BResult = Aspect::Inverse (TOri_Matrix, TOri_Matrix_Inv);
|
||||
Aspect::Inverse (TOri_Matrix, TOri_Matrix_Inv);
|
||||
|
||||
// (AU, AV) : Device Coordinate Space
|
||||
// DCS -> NPCS Normalized Projection Coordinate Space
|
||||
|
Reference in New Issue
Block a user