Skip to content

Commit 056285b

Browse files
Merge pull request SixLabors#977 from SimonCropp/patternVectorNotUsed
remove patternVector in patternBrush
2 parents f74120f + 8ba852d commit 056285b

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/ImageSharp.Drawing/Processing/PatternBrush.cs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,6 @@ public BrushApplicator<TPixel> CreateApplicator<TPixel>(
9999
new PatternBrushApplicator<TPixel>(
100100
source,
101101
this.pattern.ToPixelMatrix<TPixel>(source.Configuration),
102-
this.patternVector,
103102
options);
104103

105104
/// <summary>
@@ -112,20 +111,17 @@ private class PatternBrushApplicator<TPixel> : BrushApplicator<TPixel>
112111
/// The pattern.
113112
/// </summary>
114113
private readonly DenseMatrix<TPixel> pattern;
115-
private readonly DenseMatrix<Vector4> patternVector;
116114

117115
/// <summary>
118116
/// Initializes a new instance of the <see cref="PatternBrushApplicator{TPixel}" /> class.
119117
/// </summary>
120118
/// <param name="source">The source image.</param>
121119
/// <param name="pattern">The pattern.</param>
122-
/// <param name="patternVector">The patternVector.</param>
123120
/// <param name="options">The options</param>
124-
public PatternBrushApplicator(ImageFrame<TPixel> source, in DenseMatrix<TPixel> pattern, DenseMatrix<Vector4> patternVector, GraphicsOptions options)
121+
public PatternBrushApplicator(ImageFrame<TPixel> source, in DenseMatrix<TPixel> pattern, GraphicsOptions options)
125122
: base(source, options)
126123
{
127124
this.pattern = pattern;
128-
this.patternVector = patternVector;
129125
}
130126

131127
/// <summary>

0 commit comments

Comments
 (0)