From 3e65ef99ccf93396d872216dcde088f833136ede Mon Sep 17 00:00:00 2001 From: Anton Firszov Date: Thu, 29 Dec 2016 03:11:44 +0100 Subject: [PATCH] StyleCop --- .../Formats/Jpg/Components/Decoder/JpegPixelArea.cs | 4 ++-- src/ImageSharp/Formats/Jpg/Components/Decoder/YCbCrImage.cs | 2 -- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/src/ImageSharp/Formats/Jpg/Components/Decoder/JpegPixelArea.cs b/src/ImageSharp/Formats/Jpg/Components/Decoder/JpegPixelArea.cs index 916209289..9fe6fecec 100644 --- a/src/ImageSharp/Formats/Jpg/Components/Decoder/JpegPixelArea.cs +++ b/src/ImageSharp/Formats/Jpg/Components/Decoder/JpegPixelArea.cs @@ -50,6 +50,8 @@ namespace ImageSharp.Formats.Jpg /// public MutableSpan Span => new MutableSpan(this.Pixels, this.Offset); + private static ArrayPool BytePool => ArrayPool.Shared; + /// /// Returns the pixel at (x, y) /// @@ -94,8 +96,6 @@ namespace ImageSharp.Formats.Jpg this.Pixels = null; } - private static ArrayPool BytePool => ArrayPool.Shared; - /// /// Gets the subarea that belongs to the Block8x8 defined by block indices /// diff --git a/src/ImageSharp/Formats/Jpg/Components/Decoder/YCbCrImage.cs b/src/ImageSharp/Formats/Jpg/Components/Decoder/YCbCrImage.cs index 6f7140fa2..a5ca9796b 100644 --- a/src/ImageSharp/Formats/Jpg/Components/Decoder/YCbCrImage.cs +++ b/src/ImageSharp/Formats/Jpg/Components/Decoder/YCbCrImage.cs @@ -85,8 +85,6 @@ namespace ImageSharp.Formats.Jpg YCbCrSubsampleRatio410, } - private static ArrayPool BytePool => ArrayPool.Shared; - /// /// Gets the Y slice index delta between vertically adjacent pixels. ///