Skip to content

Commit 00b3414

Browse files
Remove unnecessary assignment
1 parent 57c5a21 commit 00b3414

1 file changed

Lines changed: 0 additions & 5 deletions

File tree

src/ImageSharp.Drawing/Processing/PathGradientBrush.cs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,10 @@ namespace SixLabors.ImageSharp.Drawing.Processing
1313
{
1414
/// <summary>
1515
/// Provides an implementation of a brush for painting gradients between multiple color positions in 2D coordinates.
16-
/// It works similarly with the class in System.Drawing.Drawing2D of the same name.
1716
/// </summary>
1817
public sealed class PathGradientBrush : IBrush
1918
{
2019
private readonly IList<Edge> edges;
21-
2220
private readonly Color centerColor;
2321
private readonly bool hasSpecialCenterColor;
2422

@@ -66,9 +64,6 @@ public PathGradientBrush(PointF[] points, Color[] colors)
6664

6765
Color ColorAt(int index) => colors[index % colors.Length];
6866

69-
IEnumerable<Path> paths = lines.Select(s => new Path(s));
70-
int maxIntersections = paths.Max(x => x.MaxIntersections);
71-
7267
this.edges = lines.Select(s => new Path(s))
7368
.Select((path, i) => new Edge(path, ColorAt(i), ColorAt(i + 1))).ToList();
7469
}

0 commit comments

Comments
 (0)