From 1ebdfb9e61cb59e3edec546b6752852d812b3c46 Mon Sep 17 00:00:00 2001 From: James Jackson-South Date: Wed, 1 Feb 2017 20:42:31 +1100 Subject: [PATCH] Remove finalizer --- src/ImageSharp/Image/ImageBase{TColor}.cs | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) diff --git a/src/ImageSharp/Image/ImageBase{TColor}.cs b/src/ImageSharp/Image/ImageBase{TColor}.cs index c58f9412d0..02bab249be 100644 --- a/src/ImageSharp/Image/ImageBase{TColor}.cs +++ b/src/ImageSharp/Image/ImageBase{TColor}.cs @@ -15,14 +15,9 @@ namespace ImageSharp /// /// The pixel format. [DebuggerDisplay("Image: {Width}x{Height}")] - public abstract class ImageBase : IImageBase // IImageBase implements IDisposable + public abstract class ImageBase : IImageBase where TColor : struct, IPackedPixel, IEquatable { - /// - /// The used to pool data. TODO: Choose sensible default size and count - /// - private static readonly ArrayPool ArrayPool = ArrayPool.Create(int.MaxValue, 50); - /// /// The image pixels /// @@ -94,14 +89,6 @@ namespace ImageSharp } } - /// - /// Finalizes an instance of the class. - /// - ~ImageBase() - { - this.Dispose(false); - } - /// public int MaxWidth { get; set; } = int.MaxValue;