From 8eec69ff0915f567d5f3f906f363deffdb0cca0a Mon Sep 17 00:00:00 2001 From: Cj <161484149+CJ-SPT@users.noreply.github.com> Date: Fri, 9 Aug 2024 23:25:11 -0400 Subject: [PATCH] Remove unused extension method --- RecodeItLib/Utils/EnumHelpers.cs | 26 -------------------------- 1 file changed, 26 deletions(-) delete mode 100644 RecodeItLib/Utils/EnumHelpers.cs diff --git a/RecodeItLib/Utils/EnumHelpers.cs b/RecodeItLib/Utils/EnumHelpers.cs deleted file mode 100644 index ce1253d..0000000 --- a/RecodeItLib/Utils/EnumHelpers.cs +++ /dev/null @@ -1,26 +0,0 @@ -using ReCodeIt.Enums; - -namespace ReCodeIt.Utils; - -internal static class EnumExtensions -{ - /// - /// Returns a match from a list of match results - /// - /// - /// highest EMatchResult - public static EMatchResult GetMatch(this List matches) - { - // Prioritize returning matches - if (matches.Contains(EMatchResult.Match)) { return EMatchResult.Match; } - - // Then NoMatches - if (matches.Contains(EMatchResult.NoMatch)) { return EMatchResult.NoMatch; } - - // Then Disabled - if (matches.Contains(EMatchResult.Disabled)) { return EMatchResult.Disabled; } - - // default to disabled - return EMatchResult.Disabled; - } -} \ No newline at end of file