Skip to content

Commit

Permalink
Revert "Added support for splitting on ReadOnlySpan<char> (dotnet#295)…
Browse files Browse the repository at this point in the history
…" (dotnet#37757)

This reverts commit 78ed8e8.
  • Loading branch information
layomia authored Jun 11, 2020
1 parent d2f9adc commit d00c5f6
Show file tree
Hide file tree
Showing 6 changed files with 0 additions and 397 deletions.
9 changes: 0 additions & 9 deletions src/libraries/System.Memory/ref/System.Memory.cs
Original file line number Diff line number Diff line change
Expand Up @@ -91,9 +91,6 @@ public static void Sort<T>(this System.Span<T> span, System.Comparison<T> compar
public static void Sort<TKey, TValue>(this System.Span<TKey> keys, System.Span<TValue> items) { }
public static void Sort<TKey, TValue, TComparer>(this System.Span<TKey> keys, System.Span<TValue> items, TComparer comparer) where TComparer : System.Collections.Generic.IComparer<TKey>? { }
public static void Sort<TKey, TValue>(this System.Span<TKey> keys, System.Span<TValue> items, System.Comparison<TKey> comparison) { }
public static System.SpanSplitEnumerator<char> Split(this System.ReadOnlySpan<char> span) { throw null; }
public static System.SpanSplitEnumerator<char> Split(this System.ReadOnlySpan<char> span, char separator) { throw null; }
public static System.SpanSplitEnumerator<char> Split(this System.ReadOnlySpan<char> span, string separator) { throw null; }
public static bool StartsWith(this System.ReadOnlySpan<char> span, System.ReadOnlySpan<char> value, System.StringComparison comparisonType) { throw null; }
public static bool StartsWith<T>(this System.ReadOnlySpan<T> span, System.ReadOnlySpan<T> value) where T : System.IEquatable<T> { throw null; }
public static bool StartsWith<T>(this System.Span<T> span, System.ReadOnlySpan<T> value) where T : System.IEquatable<T> { throw null; }
Expand Down Expand Up @@ -159,12 +156,6 @@ public static void Sort<TKey, TValue>(this System.Span<TKey> keys, System.Span<T
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
public object? GetObject() { throw null; }
}
public ref struct SpanSplitEnumerator<T> where T : System.IEquatable<T>
{
public System.SpanSplitEnumerator<T> GetEnumerator() { throw null; }
public readonly System.Range Current { get { throw null; } }
public bool MoveNext() { throw null; }
}
}
namespace System.Buffers
{
Expand Down
260 changes: 0 additions & 260 deletions src/libraries/System.Memory/tests/ReadOnlySpan/Split.char.cs

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,6 @@
<Compile Include="ReadOnlySpan\SequenceEqual.long.cs" />
<Compile Include="ReadOnlySpan\SequenceEqual.T.cs" />
<Compile Include="ReadOnlySpan\Slice.cs" />
<Compile Include="ReadOnlySpan\Split.char.cs" />
<Compile Include="ReadOnlySpan\StartsWith.byte.cs" />
<Compile Include="ReadOnlySpan\StartsWith.long.cs" />
<Compile Include="ReadOnlySpan\StartsWith.T.cs" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -416,7 +416,6 @@
<Compile Include="$(MSBuildThisFileDirectory)System\MemoryDebugView.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\MemoryExtensions.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\MemoryExtensions.Globalization.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\MemoryExtensions.Split.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\MemoryExtensions.Trim.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\MethodAccessException.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\MidpointRounding.cs" />
Expand Down Expand Up @@ -857,7 +856,6 @@
<Compile Include="$(MSBuildThisFileDirectory)System\SpanHelpers.Char.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\SpanHelpers.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\SpanHelpers.T.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\SpanSplitEnumerator.T.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\SR.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\StackOverflowException.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\String.Comparison.cs" />
Expand Down

This file was deleted.

Loading

0 comments on commit d00c5f6

Please sign in to comment.