Skip to content

Commit

Permalink
Remove unused code
Browse files Browse the repository at this point in the history
  • Loading branch information
adams85 committed Aug 2, 2024
1 parent e9d2731 commit 70c5c3f
Showing 1 changed file with 0 additions and 38 deletions.
38 changes: 0 additions & 38 deletions src/ConfigCatClient/FormattableString.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,42 +13,6 @@ namespace System
{
internal readonly struct FormattableString : IFormattable
{
/// <summary>
/// Format the given object in the invariant culture. This static method may be
/// imported in C# by
/// <code>
/// using static System.FormattableString;
/// </code>.
/// Within the scope
/// of that import directive an interpolated string may be formatted in the
/// invariant culture by writing, for example,
/// <code>
/// Invariant($"{{ lat = {latitude}; lon = {longitude} }}")
/// </code>
/// </summary>
public static string Invariant(FormattableString formattable)
{
return formattable.ToString(Globalization.CultureInfo.InvariantCulture);
}

/// <summary>
/// Format the given object in the current culture. This static method may be
/// imported in C# by
/// <code>
/// using static System.FormattableString;
/// </code>.
/// Within the scope
/// of that import directive an interpolated string may be formatted in the
/// current culture by writing, for example,
/// <code>
/// CurrentCulture($"{{ lat = {latitude}; lon = {longitude} }}")
/// </code>
/// </summary>
public static string CurrentCulture(FormattableString formattable)
{
return formattable.ToString(Globalization.CultureInfo.CurrentCulture);
}

private readonly string format;
private readonly object?[] arguments;

Expand All @@ -60,8 +24,6 @@ internal FormattableString(string format, object?[] arguments)

public string Format => this.format ?? string.Empty;
public object?[] GetArguments() { return this.arguments; }
public int ArgumentCount => this.arguments?.Length ?? 0;
public object? GetArgument(int index) { return this.arguments[index]; }

public string ToString(string? format, IFormatProvider? formatProvider) { return ToString(formatProvider); }
public string ToString(IFormatProvider? formatProvider) { return string.Format(formatProvider, this.format, this.arguments); }
Expand Down

0 comments on commit 70c5c3f

Please sign in to comment.