diff --git a/src/ImageSharp/Memory/MemoryOwnerExtensions.cs b/src/ImageSharp/Memory/MemoryOwnerExtensions.cs index 0cff94110c..c2551ccf2c 100644 --- a/src/ImageSharp/Memory/MemoryOwnerExtensions.cs +++ b/src/ImageSharp/Memory/MemoryOwnerExtensions.cs @@ -3,7 +3,6 @@ using System; using System.Buffers; -using System.Diagnostics.Contracts; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -19,7 +18,6 @@ namespace SixLabors.ImageSharp.Memory /// /// The buffer /// The - [Pure] [MethodImpl(MethodImplOptions.AggressiveInlining)] public static Span GetSpan(this IMemoryOwner buffer) { @@ -31,7 +29,6 @@ namespace SixLabors.ImageSharp.Memory /// /// The buffer /// The length of the buffer - [Pure] [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int Length(this IMemoryOwner buffer) { @@ -44,7 +41,6 @@ namespace SixLabors.ImageSharp.Memory /// The buffer /// The start /// The - [Pure] [MethodImpl(MethodImplOptions.AggressiveInlining)] public static Span Slice(this IMemoryOwner buffer, int start) { @@ -58,7 +54,6 @@ namespace SixLabors.ImageSharp.Memory /// The start /// The length of the slice /// The - [Pure] [MethodImpl(MethodImplOptions.AggressiveInlining)] public static Span Slice(this IMemoryOwner buffer, int start, int length) { @@ -80,7 +75,6 @@ namespace SixLabors.ImageSharp.Memory /// /// The buffer /// A reference to the first item within the memory wrapped by - [Pure] [MethodImpl(MethodImplOptions.AggressiveInlining)] public static ref T GetReference(this IMemoryOwner buffer) where T : struct