Skip to content

Commit 5926455

Browse files
committed
Remove ExrCompression property from ExrBaseCompression, it is not needed
1 parent b4cd27f commit 5926455

File tree

3 files changed

+0
-14
lines changed

3 files changed

+0
-14
lines changed

src/ImageSharp/Formats/Exr/Compression/Compressors/NoneExrCompressor.cs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
// Copyright (c) Six Labors.
22
// Licensed under the Six Labors Split License.
33

4-
using SixLabors.ImageSharp.Formats.Exr.Constants;
54
using SixLabors.ImageSharp.Memory;
65

76
namespace SixLabors.ImageSharp.Formats.Exr.Compression.Compressors;
@@ -13,9 +12,6 @@ public NoneExrCompressor(Stream output, MemoryAllocator allocator, uint bytesPer
1312
{
1413
}
1514

16-
/// <inheritdoc/>
17-
public override ExrCompression Method => ExrCompression.Zip;
18-
1915
/// <inheritdoc/>
2016
public override uint CompressRowBlock(Span<byte> rows, int rowCount)
2117
{

src/ImageSharp/Formats/Exr/Compression/Compressors/ZipExrCompressor.cs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
// Licensed under the Six Labors Split License.
33

44
using SixLabors.ImageSharp.Compression.Zlib;
5-
using SixLabors.ImageSharp.Formats.Exr.Constants;
65
using SixLabors.ImageSharp.Memory;
76

87
namespace SixLabors.ImageSharp.Formats.Exr.Compression.Compressors;
@@ -23,9 +22,6 @@ public ZipExrCompressor(Stream output, MemoryAllocator allocator, uint bytesPerB
2322
this.memoryStream = new();
2423
}
2524

26-
/// <inheritdoc/>
27-
public override ExrCompression Method => ExrCompression.Zip;
28-
2925
/// <inheritdoc/>
3026
public override uint CompressRowBlock(Span<byte> rows, int rowCount)
3127
{

src/ImageSharp/Formats/Exr/ExrBaseCompressor.cs

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
// Copyright (c) Six Labors.
22
// Licensed under the Six Labors Split License.
33

4-
using SixLabors.ImageSharp.Formats.Exr.Constants;
54
using SixLabors.ImageSharp.Memory;
65

76
namespace SixLabors.ImageSharp.Formats.Exr.Compression;
@@ -19,11 +18,6 @@ protected ExrBaseCompressor(Stream output, MemoryAllocator allocator, uint bytes
1918
: base(allocator, bytesPerBlock, bytesPerRow)
2019
=> this.Output = output;
2120

22-
/// <summary>
23-
/// Gets the compression method to use.
24-
/// </summary>
25-
public abstract ExrCompression Method { get; }
26-
2721
/// <summary>
2822
/// Gets the output stream to write the compressed image to.
2923
/// </summary>

0 commit comments

Comments
 (0)