Remove FluentBundle.Arguments helper method.

This commit is contained in:
Paul Chote
2024-10-02 22:40:05 +01:00
committed by Gustas
parent b29b685058
commit d6285affec
71 changed files with 273 additions and 283 deletions

View File

@@ -9,7 +9,6 @@
*/
#endregion
using System.Collections.Generic;
using OpenRA.FileSystem;
namespace OpenRA
@@ -32,7 +31,7 @@ namespace OpenRA
}
}
public static string GetString(string key, IDictionary<string, object> args = null)
public static string GetString(string key, params object[] args)
{
lock (SyncObject)
{
@@ -48,7 +47,7 @@ namespace OpenRA
}
}
public static bool TryGetString(string key, out string message, IDictionary<string, object> args = null)
public static bool TryGetString(string key, out string message, params object[] args)
{
lock (SyncObject)
{
@@ -65,7 +64,7 @@ namespace OpenRA
}
/// <summary>Should only be used by <see cref="MapPreview"/>.</summary>
internal static bool TryGetModString(string key, out string message, IDictionary<string, object> args = null)
internal static bool TryGetModString(string key, out string message, params object[] args)
{
lock (SyncObject)
{