Skip to content

Commit

Permalink
Remove unused polyfill
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelcfanning committed Feb 22, 2025
1 parent 6880814 commit ee51a17
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions src/Cask/Polyfill.cs
Original file line number Diff line number Diff line change
Expand Up @@ -107,16 +107,6 @@ public static unsafe int GetBytes(this Encoding encoding, ReadOnlySpan<char> cha
return encoding.GetBytes(charPtr, chars.Length, bytePtr, bytes.Length);
}
}

public static int GetHashCode(this string s, StringComparison comparison)
{
return comparison switch
{
StringComparison.Ordinal => StringComparer.Ordinal.GetHashCode(s),
StringComparison.OrdinalIgnoreCase => StringComparer.OrdinalIgnoreCase.GetHashCode(s),
_ => throw new NotSupportedException(),
};
}
}

internal static class ArgumentValidation
Expand Down

0 comments on commit ee51a17

Please sign in to comment.