Minor code cleanup

This commit is contained in:
Wojtek Figat
2024-05-15 12:40:08 +02:00
parent 24e4015425
commit b4a4a8a591
3 changed files with 0 additions and 5 deletions

View File

@@ -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;

View File

@@ -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;
}

View File

@@ -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;
}