@@ -18,7 +18,6 @@ public sealed class ComplexPolygon : IPath, IPathInternals, IInternalPathOwner
1818 {
1919 private readonly IPath [ ] paths ;
2020 private readonly List < InternalPath > internalPaths ;
21- private readonly int maxIntersections ;
2221 private readonly float length ;
2322
2423 /// <summary>
@@ -48,7 +47,6 @@ public ComplexPolygon(params IPath[] paths)
4847 float minY = float . MaxValue ;
4948 float maxY = float . MinValue ;
5049 float length = 0 ;
51- int intersections = 0 ;
5250
5351 foreach ( IPath p in this . paths )
5452 {
@@ -75,19 +73,16 @@ public ComplexPolygon(params IPath[] paths)
7573 foreach ( ISimplePath s in p . Flatten ( ) )
7674 {
7775 var ip = new InternalPath ( s . Points , s . IsClosed ) ;
78- intersections += ip . PointCount ;
7976 length += ip . Length ;
8077 this . internalPaths . Add ( ip ) ;
8178 }
8279 }
8380
84- this . maxIntersections = intersections ;
8581 this . length = length ;
8682 this . Bounds = new RectangleF ( minX , minY , maxX - minX , maxY - minY ) ;
8783 }
8884 else
8985 {
90- this . maxIntersections = 0 ;
9186 this . length = 0 ;
9287 this . Bounds = RectangleF . Empty ;
9388 }
@@ -106,9 +101,6 @@ public ComplexPolygon(params IPath[] paths)
106101 /// <inheritdoc/>
107102 public RectangleF Bounds { get ; }
108103
109- /// <inheritdoc/>
110- int IPathInternals . MaxIntersections => this . maxIntersections ;
111-
112104 /// <inheritdoc/>
113105 public bool Contains ( PointF point )
114106 {
0 commit comments