From 7f9bb9012b13578e2cd6484197f2e6c97464e0f1 Mon Sep 17 00:00:00 2001 From: James Jackson-South Date: Fri, 22 Sep 2017 00:18:49 +1000 Subject: [PATCH] Removed unused methods --- .../Jpeg/GolangPort/OrigJpegDecoderCore.cs | 38 ------------------- 1 file changed, 38 deletions(-) diff --git a/src/ImageSharp/Formats/Jpeg/GolangPort/OrigJpegDecoderCore.cs b/src/ImageSharp/Formats/Jpeg/GolangPort/OrigJpegDecoderCore.cs index 52c60dea20..98cc742df6 100644 --- a/src/ImageSharp/Formats/Jpeg/GolangPort/OrigJpegDecoderCore.cs +++ b/src/ImageSharp/Formats/Jpeg/GolangPort/OrigJpegDecoderCore.cs @@ -47,16 +47,6 @@ namespace SixLabors.ImageSharp.Formats.Jpeg.GolangPort /// private readonly Configuration configuration; - /// - /// The App14 marker color-space - /// - private byte adobeTransform; - - /// - /// Whether the image is in CMYK format with an App14 marker - /// - private bool adobeTransformValid; - /// /// The horizontal resolution. Calculated if the image has a JFIF header. /// @@ -446,30 +436,6 @@ namespace SixLabors.ImageSharp.Formats.Jpeg.GolangPort } } - /// - /// Returns a value indicating whether the image in an RGB image. - /// - /// - /// The . - /// - private bool IsRGB() - { - if (this.isJfif) - { - return false; - } - - if (this.adobeTransformValid && this.adobeTransform == OrigJpegConstants.Adobe.ColorTransformUnknown) - { - // http://www.sno.phy.queensu.ca/~phil/exiftool/TagNames/JPEG.html#Adobe - // says that 0 means Unknown (and in practice RGB) and 1 means YCbCr. - return true; - } - - return this.Components[0].Identifier == 'R' && this.Components[1].Identifier == 'G' - && this.Components[2].Identifier == 'B'; - } - /// /// Processes the application header containing the Adobe identifier /// which stores image encoding information for DCT filters. @@ -495,10 +461,6 @@ namespace SixLabors.ImageSharp.Formats.Jpeg.GolangPort if (this.isAdobe) { - // TODO: delete these 2 lines - this.adobeTransformValid = true; - this.adobeTransform = this.Temp[11]; - this.adobe = new AdobeMarker { DCTEncodeVersion = (short)((this.Temp[5] << 8) | this.Temp[6]),