From 70c5c3fe8c07393d582cd36289b797ed5233d6ae Mon Sep 17 00:00:00 2001 From: Adam Simon Date: Fri, 2 Aug 2024 19:59:39 +0200 Subject: [PATCH] Remove unused code --- src/ConfigCatClient/FormattableString.cs | 38 ------------------------ 1 file changed, 38 deletions(-) diff --git a/src/ConfigCatClient/FormattableString.cs b/src/ConfigCatClient/FormattableString.cs index 64e06fe8..bc6a9824 100644 --- a/src/ConfigCatClient/FormattableString.cs +++ b/src/ConfigCatClient/FormattableString.cs @@ -13,42 +13,6 @@ namespace System { internal readonly struct FormattableString : IFormattable { - /// - /// Format the given object in the invariant culture. This static method may be - /// imported in C# by - /// - /// using static System.FormattableString; - /// . - /// Within the scope - /// of that import directive an interpolated string may be formatted in the - /// invariant culture by writing, for example, - /// - /// Invariant($"{{ lat = {latitude}; lon = {longitude} }}") - /// - /// - public static string Invariant(FormattableString formattable) - { - return formattable.ToString(Globalization.CultureInfo.InvariantCulture); - } - - /// - /// Format the given object in the current culture. This static method may be - /// imported in C# by - /// - /// using static System.FormattableString; - /// . - /// Within the scope - /// of that import directive an interpolated string may be formatted in the - /// current culture by writing, for example, - /// - /// CurrentCulture($"{{ lat = {latitude}; lon = {longitude} }}") - /// - /// - public static string CurrentCulture(FormattableString formattable) - { - return formattable.ToString(Globalization.CultureInfo.CurrentCulture); - } - private readonly string format; private readonly object?[] arguments; @@ -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); }