From 0be9cde55627d5f8f166ce9d3a42d3014c8cff4d Mon Sep 17 00:00:00 2001 From: Tig Date: Wed, 3 Jul 2024 10:17:02 -0600 Subject: [PATCH] Removed dead code from scenario --- UICatalog/Scenarios/TextFormatterDemo.cs | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/UICatalog/Scenarios/TextFormatterDemo.cs b/UICatalog/Scenarios/TextFormatterDemo.cs index ebf3659fb..85938f65b 100644 --- a/UICatalog/Scenarios/TextFormatterDemo.cs +++ b/UICatalog/Scenarios/TextFormatterDemo.cs @@ -62,19 +62,7 @@ public class TextFormatterDemo : Scenario }; app.Add (unicodeCheckBox); - - static IEnumerable GetUniqueEnumValues () where T : Enum - { - var values = new HashSet (); - foreach (T v in Enum.GetValues (typeof (T))) - { - if (values.Add (v)) - { - yield return v; - } - } - } - + List alignments = new () { Alignment.Start, Alignment.End, Alignment.Center, Alignment.Fill }; Label [] singleLines = new Label [alignments.Count]; Label [] multipleLines = new Label [alignments.Count];