diff --git a/PerformanceCalculator/Leaderboard/LeaderboardCommand.cs b/PerformanceCalculator/Leaderboard/LeaderboardCommand.cs index b66fa55b0..a9455ae3a 100644 --- a/PerformanceCalculator/Leaderboard/LeaderboardCommand.cs +++ b/PerformanceCalculator/Leaderboard/LeaderboardCommand.cs @@ -3,7 +3,6 @@ using System; using System.Collections.Generic; -using System.IO; using System.Linq; using Alba.CsConsoleFormat; using JetBrains.Annotations; diff --git a/PerformanceCalculator/Profile/ProfileCommand.cs b/PerformanceCalculator/Profile/ProfileCommand.cs index 41fc98e9f..7cb90d6f3 100644 --- a/PerformanceCalculator/Profile/ProfileCommand.cs +++ b/PerformanceCalculator/Profile/ProfileCommand.cs @@ -3,7 +3,6 @@ using System; using System.Collections.Generic; -using System.IO; using System.Linq; using Alba.CsConsoleFormat; using JetBrains.Annotations; diff --git a/PerformanceCalculator/Simulate/SimulateCommand.cs b/PerformanceCalculator/Simulate/SimulateCommand.cs index a3a742003..604c53c2b 100644 --- a/PerformanceCalculator/Simulate/SimulateCommand.cs +++ b/PerformanceCalculator/Simulate/SimulateCommand.cs @@ -4,16 +4,10 @@ using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; -using System.Globalization; using System.Linq; -using System.Reflection; -using System.Text.RegularExpressions; using JetBrains.Annotations; using McMaster.Extensions.CommandLineUtils; -using osu.Framework.Bindables; using osu.Game.Beatmaps; -using osu.Game.Configuration; -using osu.Game.Extensions; using osu.Game.Online.API; using osu.Game.Rulesets; using osu.Game.Rulesets.Mods; @@ -97,14 +91,13 @@ protected Mod[] GetMods(Ruleset ruleset) if (Mods == null) return Array.Empty(); - var availableMods = ruleset.CreateAllMods().ToList(); var mods = new List(); foreach (var modString in Mods) { - APIMod mod = new APIMod() { Acronym = modString }; + APIMod mod = new APIMod { Acronym = modString }; - foreach(string modOption in ModOptions.Where(x => x.ToUpper().StartsWith($"{modString}_"))) + foreach (string modOption in ModOptions.Where(x => x.StartsWith($"{modString}_", StringComparison.CurrentCultureIgnoreCase))) { string[] split = modOption[3..].Split('='); if (split.Length != 2)