mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-29 14:00:49 +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:
@@ -157,7 +157,6 @@ void DsgPrs_DiameterPresentation::Add (const Handle(Prs3d_Presentation)& aPresen
|
||||
Standard_Real parEndOfArrow = ElCLib::Parameter(aCircle,AttachmentPoint);
|
||||
gp_Pnt EndOfArrow;
|
||||
gp_Pnt DrawPosition = AttachmentPoint;// point of attachment
|
||||
Standard_Boolean otherside = Standard_False;
|
||||
|
||||
gp_Pnt Center = aCircle.Location();
|
||||
gp_Pnt FirstPoint = ElCLib::Value(uFirst, aCircle);
|
||||
@@ -169,7 +168,6 @@ void DsgPrs_DiameterPresentation::Add (const Handle(Prs3d_Presentation)& aPresen
|
||||
if (DsgPrs_InDomain(fpara,lpara,otherpar)) {
|
||||
parEndOfArrow = otherpar; // parameter on circle
|
||||
EndOfArrow = ElCLib::Value(parEndOfArrow, aCircle);
|
||||
otherside = Standard_True;
|
||||
}
|
||||
else {
|
||||
gp_Dir dir1(gp_Vec(Center, FirstPoint));
|
||||
|
Reference in New Issue
Block a user