Skip to content

Commit fa9f1f6

Browse files
committed
Fix some compiler warnings
1 parent c80e633 commit fa9f1f6

6 files changed

Lines changed: 7 additions & 10 deletions

File tree

CADability/BRepIntersection.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9472,7 +9472,7 @@ private void createNewEdges()
94729472
(tr as IGeoObject).UserData.Add("DebugIntersectionBy2", item.Key.face2.GetHashCode());
94739473
if (con2 is InterpolatedDualSurfaceCurve.ProjectedCurve)
94749474
{
9475-
BSpline2D dbgbsp2d = (con2 as InterpolatedDualSurfaceCurve.ProjectedCurve).ToBSpline(0.0);
9475+
BSpline2D dbgbsp2d = (con2 as InterpolatedDualSurfaceCurve.ProjectedCurve).ToBspline(0.0);
94769476
}
94779477
#endif
94789478
if (dirs1) // the trimming of BSplines is sometimes not very exact

CADability/Edge.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1919,7 +1919,7 @@ internal void UpdateInterpolatedDualSurfaceCurve()
19191919
curve3d = dsc.ToBSpline(Precision.eps);
19201920
if (curveOnPrimaryFace is InterpolatedDualSurfaceCurve.ProjectedCurve)
19211921
{
1922-
curveOnPrimaryFace = (curveOnPrimaryFace as InterpolatedDualSurfaceCurve.ProjectedCurve).ToBSpline(Precision.eps);
1922+
curveOnPrimaryFace = (curveOnPrimaryFace as InterpolatedDualSurfaceCurve.ProjectedCurve).ToBspline(Precision.eps);
19231923
}
19241924
}
19251925
}

CADability/GaussNewtonMinimizer.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -492,7 +492,6 @@ void efunc(double[] parameters, out double[] values)
492492
double a = parameters[0];
493493
double b = parameters[1];
494494
double c = parameters[2];
495-
double d = -1;
496495
for (int i = 0; i < points.Length; i++)
497496
{
498497
double px = points[i].x + dx;

CADability/JsonSerialize.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1304,7 +1304,7 @@ private void WriteObject(object val)
13041304
(this as IJsonWriteData).AddProperty(pi[i].Name, pval);
13051305
serialized = true; // at least one property can be read and written
13061306
}
1307-
catch (TargetInvocationException t) { }
1307+
catch (TargetInvocationException) { }
13081308
}
13091309
}
13101310
}

CADability/Parametric.cs

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1072,10 +1072,10 @@ public bool Apply()
10721072
involvedFaces.Add(edge.PrimaryFace);
10731073
involvedFaces.Add(edge.SecondaryFace);
10741074
}
1075-
else
1076-
{
1077-
// return false; // edge could not be recalculated, the modification is not possible
1078-
}
1075+
//else
1076+
//{
1077+
// return false; // edge could not be recalculated, the modification is not possible
1078+
//}
10791079
}
10801080
foreach (Face face in involvedFaces)
10811081
{
@@ -1099,7 +1099,6 @@ public bool Apply()
10991099
clonedShell.RecalcVertices(); // not sure, why this is necessary, but sometimes it is
11001100
return clonedShell.CheckConsistency();
11011101
}
1102-
return true;
11031102
}
11041103
finally
11051104
{ // clear all sets to allow multiple usage of the parametrics

CADability/ParametricProperty.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -615,7 +615,6 @@ public override ParametricProperty Clone(Dictionary<Face, Face> clonedFaces, Dic
615615
List<Face> forwardFacesCloned = new List<Face>();
616616
List<Face> backwardFacesCloned = new List<Face>();
617617
List<object> affectedObjectsCloned = new List<object>();
618-
object fromHereCloned, toHereCloned;
619618
for (int i = 0; i < forwardFaces.Count; i++)
620619
{
621620
if (clonedFaces.TryGetValue(forwardFaces[i], out Face clone)) forwardFacesCloned.Add(clone);

0 commit comments

Comments
 (0)