diff --git a/src/ImageSharp/ColorSpaces/CieXyChromaticityCoordinates.cs b/src/ImageSharp/ColorSpaces/CieXyChromaticityCoordinates.cs
index 92687a563..487f464d8 100644
--- a/src/ImageSharp/ColorSpaces/CieXyChromaticityCoordinates.cs
+++ b/src/ImageSharp/ColorSpaces/CieXyChromaticityCoordinates.cs
@@ -5,8 +5,8 @@ using System;
using System.ComponentModel;
using System.Numerics;
using System.Runtime.CompilerServices;
-// ReSharper disable CompareOfFloatsByEqualityOperator
+// ReSharper disable CompareOfFloatsByEqualityOperator
namespace SixLabors.ImageSharp.ColorSpaces
{
///
diff --git a/src/ImageSharp/Formats/Jpeg/PdfJsPort/Components/PdfJsIDCT.cs b/src/ImageSharp/Formats/Jpeg/PdfJsPort/Components/PdfJsIDCT.cs
index f2e269f6c..00fa1985d 100644
--- a/src/ImageSharp/Formats/Jpeg/PdfJsPort/Components/PdfJsIDCT.cs
+++ b/src/ImageSharp/Formats/Jpeg/PdfJsPort/Components/PdfJsIDCT.cs
@@ -3,11 +3,10 @@
using System;
using System.Runtime.CompilerServices;
+using SixLabors.ImageSharp.Memory;
namespace SixLabors.ImageSharp.Formats.Jpeg.PdfJsPort.Components
{
- using SixLabors.ImageSharp.Memory;
-
///
/// Performs the inverse Descrete Cosine Transform on each frame component.
///
diff --git a/src/ImageSharp/Memory/BasicArrayBuffer.cs b/src/ImageSharp/Memory/BasicArrayBuffer.cs
index 17bf4c843..d2f8653f6 100644
--- a/src/ImageSharp/Memory/BasicArrayBuffer.cs
+++ b/src/ImageSharp/Memory/BasicArrayBuffer.cs
@@ -36,7 +36,7 @@ namespace SixLabors.ImageSharp.Memory
return ref span[index];
}
}
-
+
public void Dispose()
{
}
diff --git a/src/ImageSharp/Memory/Buffer2DExtensions.cs b/src/ImageSharp/Memory/Buffer2DExtensions.cs
index 0cbffde77..ac5ab09db 100644
--- a/src/ImageSharp/Memory/Buffer2DExtensions.cs
+++ b/src/ImageSharp/Memory/Buffer2DExtensions.cs
@@ -12,7 +12,6 @@ namespace SixLabors.ImageSharp.Memory
///
internal static class Buffer2DExtensions
{
-
///
/// Gets a to the row 'y' beginning from the pixel at 'x'.
///
diff --git a/src/ImageSharp/Memory/Buffer{T}.cs b/src/ImageSharp/Memory/Buffer{T}.cs
deleted file mode 100644
index 547e6f209..000000000
--- a/src/ImageSharp/Memory/Buffer{T}.cs
+++ /dev/null
@@ -1,77 +0,0 @@
-// Copyright (c) Six Labors and contributors.
-// Licensed under the Apache License, Version 2.0.
-
-using System;
-using System.Runtime.CompilerServices;
-using System.Runtime.InteropServices;
-
-namespace SixLabors.ImageSharp.Memory
-{
- ///
- ///
- /// Manages a buffer of value type objects as a Disposable resource.
- /// The backing array is either pooled or comes from the outside.
- ///
- /// The value type.
- internal class Buffer : IBuffer, IGetArray
- where T : struct
- {
- private MemoryManager memoryManager;
-
- // why is there such a rule? :S Protected should be fine for a field!
-#pragma warning disable SA1401 // Fields should be private
- ///
- /// The backing array.
- ///
- protected T[] array;
-#pragma warning restore SA1401 // Fields should be private
-
- internal Buffer(T[] array, int length, MemoryManager memoryManager)
- {
- if (array.Length < length)
- {
- throw new ArgumentException("Can't initialize a PinnedBuffer with array.Length < count", nameof(array));
- }
-
- this.Length = length;
- this.array = array;
- this.memoryManager = memoryManager;
- }
-
- ///
- /// Gets the count of "relevant" elements. It's usually smaller than 'Array.Length' when is pooled.
- ///
- public int Length { get; private set; }
-
- ///
- /// Gets a to the backing buffer.
- ///
- public Span Span => new Span(this.array, 0, this.Length);
-
- ///
- /// Disposes the instance by unpinning the array, and returning the pooled buffer when necessary.
- ///
- [MethodImpl(MethodImplOptions.AggressiveInlining)]
- public void Dispose()
- {
- if (this.array == null)
- {
- return;
- }
-
- this.memoryManager = null;
- this.array = null;
- this.Length = 0;
-
- GC.SuppressFinalize(this);
- }
-
- ///
- /// TODO: Refactor this
- ///
- T[] IGetArray.GetArray()
- {
- return this.array;
- }
- }
-}
\ No newline at end of file
diff --git a/src/ImageSharp/Memory/IGetArray.cs b/src/ImageSharp/Memory/IGetArray.cs
deleted file mode 100644
index 9b46058d1..000000000
--- a/src/ImageSharp/Memory/IGetArray.cs
+++ /dev/null
@@ -1,14 +0,0 @@
-namespace SixLabors.ImageSharp.Memory
-{
- ///
- /// Absolutely temporal.
- ///
- internal interface IGetArray
- where T : struct
- {
- ///
- /// Absolutely temporal.
- ///
- T[] GetArray();
- }
-}
\ No newline at end of file