From f63348d69a2dcdda3ef37e22473d133c438345dc Mon Sep 17 00:00:00 2001 From: Simon Cropp Date: Tue, 13 Aug 2019 20:45:13 +1000 Subject: [PATCH] remove redundant ParallelOptions --- src/ImageSharp/ImageFrame{TPixel}.cs | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/ImageSharp/ImageFrame{TPixel}.cs b/src/ImageSharp/ImageFrame{TPixel}.cs index ef1066d49..5c9ff489e 100644 --- a/src/ImageSharp/ImageFrame{TPixel}.cs +++ b/src/ImageSharp/ImageFrame{TPixel}.cs @@ -4,7 +4,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; -using System.Threading.Tasks; + using SixLabors.ImageSharp.Advanced; using SixLabors.ImageSharp.Memory; using SixLabors.ImageSharp.Metadata; @@ -91,7 +91,7 @@ namespace SixLabors.ImageSharp Guard.MustBeGreaterThan(height, 0, nameof(height)); this.PixelBuffer = this.MemoryAllocator.Allocate2D(width, height); - this.Clear(configuration.GetParallelOptions(), backgroundColor); + this.Clear(backgroundColor); } /// @@ -283,9 +283,8 @@ namespace SixLabors.ImageSharp /// /// Clears the bitmap. /// - /// The parallel options. /// The value to initialize the bitmap with. - internal void Clear(ParallelOptions parallelOptions, TPixel value) + internal void Clear(TPixel value) { Span span = this.GetPixelSpan();