Browse Source

[SL.Core] remove unused indexer

pull/1087/head
Anton Firszov 8 years ago
parent
commit
3450a4cfa0
  1. 17
      src/SixLabors.Core/Memory/Internals/BasicArrayBuffer.cs

17
src/SixLabors.Core/Memory/Internals/BasicArrayBuffer.cs

@ -44,23 +44,6 @@ namespace SixLabors.Memory.Internals
/// </summary>
public int Length { get; }
/// <summary>
/// Returns a reference to specified element of the buffer.
/// </summary>
/// <param name="index">The index</param>
/// <returns>The reference to the specified element</returns>
public ref T this[int index]
{
[MethodImpl(MethodImplOptions.AggressiveInlining)]
get
{
DebugGuard.MustBeLessThan(index, this.Length, nameof(index));
Span<T> span = this.GetSpan();
return ref span[index];
}
}
/// <inheritdoc />
public override Span<T> GetSpan() => this.Array.AsSpan(0, this.Length);

Loading…
Cancel
Save