Browse Source

Remove finalizer

af/merge-core
James Jackson-South 9 years ago
parent
commit
1ebdfb9e61
  1. 15
      src/ImageSharp/Image/ImageBase{TColor}.cs

15
src/ImageSharp/Image/ImageBase{TColor}.cs

@ -15,14 +15,9 @@ namespace ImageSharp
/// </summary>
/// <typeparam name="TColor">The pixel format.</typeparam>
[DebuggerDisplay("Image: {Width}x{Height}")]
public abstract class ImageBase<TColor> : IImageBase<TColor> // IImageBase implements IDisposable
public abstract class ImageBase<TColor> : IImageBase<TColor>
where TColor : struct, IPackedPixel, IEquatable<TColor>
{
/// <summary>
/// The <see cref="ArrayPool{TColor}"/> used to pool data. TODO: Choose sensible default size and count
/// </summary>
private static readonly ArrayPool<TColor> ArrayPool = ArrayPool<TColor>.Create(int.MaxValue, 50);
/// <summary>
/// The image pixels
/// </summary>
@ -94,14 +89,6 @@ namespace ImageSharp
}
}
/// <summary>
/// Finalizes an instance of the <see cref="ImageBase{TColor}"/> class.
/// </summary>
~ImageBase()
{
this.Dispose(false);
}
/// <inheritdoc/>
public int MaxWidth { get; set; } = int.MaxValue;

Loading…
Cancel
Save