From aed2b8afae106d5aa6cfa748c57c8bce8082de26 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Eduardo=20C=C3=A1ceres?= Date: Mon, 2 May 2022 13:08:29 +0200 Subject: [PATCH] Remove unnecessarily interpolated strings --- OpenRA.Game/Renderer.cs | 2 +- .../Widgets/Logic/Ingame/Hotkeys/SelectAllUnitsHotkeyLogic.cs | 4 ++-- .../Logic/Ingame/Hotkeys/SelectUnitsByTypeHotkeyLogic.cs | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/OpenRA.Game/Renderer.cs b/OpenRA.Game/Renderer.cs index 33547da0ad..2fd1932ba6 100644 --- a/OpenRA.Game/Renderer.cs +++ b/OpenRA.Game/Renderer.cs @@ -231,7 +231,7 @@ namespace OpenRA BeginFrame(); if (worldSheet == null) - throw new InvalidOperationException($"BeginWorld called before SetMaximumViewportSize has been set."); + throw new InvalidOperationException("BeginWorld called before SetMaximumViewportSize has been set."); if (worldSprite == null || worldViewport.Size != lastWorldViewportSize) { diff --git a/OpenRA.Mods.Common/Widgets/Logic/Ingame/Hotkeys/SelectAllUnitsHotkeyLogic.cs b/OpenRA.Mods.Common/Widgets/Logic/Ingame/Hotkeys/SelectAllUnitsHotkeyLogic.cs index ac6de27e6c..5bf72adc97 100644 --- a/OpenRA.Mods.Common/Widgets/Logic/Ingame/Hotkeys/SelectAllUnitsHotkeyLogic.cs +++ b/OpenRA.Mods.Common/Widgets/Logic/Ingame/Hotkeys/SelectAllUnitsHotkeyLogic.cs @@ -52,7 +52,7 @@ namespace OpenRA.Mods.Common.Widgets.Logic.Ingame if (newSelection.Count > 1) TextNotificationsManager.AddFeedbackLine($"Selected {newSelection.Count} units across screen."); else - TextNotificationsManager.AddFeedbackLine($"Selected one unit across screen."); + TextNotificationsManager.AddFeedbackLine("Selected one unit across screen."); } else { @@ -62,7 +62,7 @@ namespace OpenRA.Mods.Common.Widgets.Logic.Ingame if (newSelection.Count > 1) TextNotificationsManager.AddFeedbackLine($"Selected {newSelection.Count} units across map."); else - TextNotificationsManager.AddFeedbackLine($"Selected one unit across map."); + TextNotificationsManager.AddFeedbackLine("Selected one unit across map."); } selection.Combine(world, newSelection, false, false); diff --git a/OpenRA.Mods.Common/Widgets/Logic/Ingame/Hotkeys/SelectUnitsByTypeHotkeyLogic.cs b/OpenRA.Mods.Common/Widgets/Logic/Ingame/Hotkeys/SelectUnitsByTypeHotkeyLogic.cs index 190209827b..40d82dcd3d 100644 --- a/OpenRA.Mods.Common/Widgets/Logic/Ingame/Hotkeys/SelectUnitsByTypeHotkeyLogic.cs +++ b/OpenRA.Mods.Common/Widgets/Logic/Ingame/Hotkeys/SelectUnitsByTypeHotkeyLogic.cs @@ -74,7 +74,7 @@ namespace OpenRA.Mods.Common.Widgets.Logic.Ingame if (newSelection.Count > 1) TextNotificationsManager.AddFeedbackLine($"Selected {newSelection.Count} units across screen."); else - TextNotificationsManager.AddFeedbackLine($"Selected one unit across screen."); + TextNotificationsManager.AddFeedbackLine("Selected one unit across screen."); } else { @@ -84,7 +84,7 @@ namespace OpenRA.Mods.Common.Widgets.Logic.Ingame if (newSelection.Count > 1) TextNotificationsManager.AddFeedbackLine($"Selected {newSelection.Count} units across map."); else - TextNotificationsManager.AddFeedbackLine($"Selected one unit across map."); + TextNotificationsManager.AddFeedbackLine("Selected one unit across map."); } selection.Combine(world, newSelection, true, false);