From 2cd0803cadf4bc22903d781466ecc7ecc50beef6 Mon Sep 17 00:00:00 2001 From: Thorsten Sommer Date: Tue, 20 Sep 2022 19:52:36 +0200 Subject: [PATCH] Removed unused code --- I18N Commander/UI WinForms/Components/Setting.cs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/I18N Commander/UI WinForms/Components/Setting.cs b/I18N Commander/UI WinForms/Components/Setting.cs index f9d7e2a..173371a 100644 --- a/I18N Commander/UI WinForms/Components/Setting.cs +++ b/I18N Commander/UI WinForms/Components/Setting.cs @@ -246,8 +246,7 @@ public sealed partial class Setting : UserControl // We load the corresponding culture for that index. As dropdown items, we show // all other available cultures: var allCultures = await AppSettings.GetCultureInfos(); - var sourceCulture = allCultures.FirstOrDefault(n => n.Index == currentSourceCultureIndex); - + // Attention: We have to store the culture's index, because the index is not // continuous and can change when the user adds or removes a culture! var settingData = new SettingUIData(