From b4a4a8a5913463bec1d6c5644f76839e641c0296 Mon Sep 17 00:00:00 2001 From: Wojtek Figat Date: Wed, 15 May 2024 12:40:08 +0200 Subject: [PATCH] Minor code cleanup --- Source/Editor/CustomEditors/Editors/DictionaryEditor.cs | 1 - Source/Engine/UI/GUI/Common/Label.cs | 2 -- Source/Engine/UI/GUI/Common/TextBox.cs | 2 -- 3 files changed, 5 deletions(-) diff --git a/Source/Editor/CustomEditors/Editors/DictionaryEditor.cs b/Source/Editor/CustomEditors/Editors/DictionaryEditor.cs index 42f90db6a..0bf477834 100644 --- a/Source/Editor/CustomEditors/Editors/DictionaryEditor.cs +++ b/Source/Editor/CustomEditors/Editors/DictionaryEditor.cs @@ -156,7 +156,6 @@ namespace FlaxEditor.CustomEditors.Editors private bool _readOnly; private bool _notNullItems; private bool _canEditKeys; - private bool _canEditValues; private bool _keyEdited; private CollectionAttribute.DisplayType _displayType; diff --git a/Source/Engine/UI/GUI/Common/Label.cs b/Source/Engine/UI/GUI/Common/Label.cs index 9aae957c0..bfdad73b0 100644 --- a/Source/Engine/UI/GUI/Common/Label.cs +++ b/Source/Engine/UI/GUI/Common/Label.cs @@ -299,14 +299,12 @@ namespace FlaxEngine.GUI LocalizedString text = _text; switch (CaseOption) { - case TextCaseOptions.None: break; case TextCaseOptions.Uppercase: text = text.ToString().ToUpper(); break; case TextCaseOptions.Lowercase: text = text.ToString().ToLower(); break; - default: break; } return text; } diff --git a/Source/Engine/UI/GUI/Common/TextBox.cs b/Source/Engine/UI/GUI/Common/TextBox.cs index e5e43d130..56838b9a4 100644 --- a/Source/Engine/UI/GUI/Common/TextBox.cs +++ b/Source/Engine/UI/GUI/Common/TextBox.cs @@ -162,14 +162,12 @@ namespace FlaxEngine.GUI string text = _text; switch (CaseOption) { - case TextCaseOptions.None: break; case TextCaseOptions.Uppercase: text = text.ToUpper(); break; case TextCaseOptions.Lowercase: text = text.ToLower(); break; - default: break; } return text; }