mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-09-13 14:27:08 +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:
@@ -1026,18 +1026,16 @@ void BRepFeat_MakeLinearForm::Perform()
|
||||
|
||||
TopoDS_Vertex Vprevious;
|
||||
gp_Pnt ptprev;
|
||||
Standard_Real tvp, dp;
|
||||
Standard_Real dp;
|
||||
|
||||
while (!(LastOK && FirstOK)) {
|
||||
if (v1OK) {
|
||||
Vprevious=v2;
|
||||
ptprev=p2;
|
||||
tvp=t2;
|
||||
}
|
||||
else {
|
||||
Vprevious=v1;
|
||||
ptprev=p1;
|
||||
tvp=t1;
|
||||
}
|
||||
|
||||
// find edge connected to v1 or v2:
|
||||
|
Reference in New Issue
Block a user