From 4ae649dd83221e619e9482a41def0a97ef0caaa8 Mon Sep 17 00:00:00 2001 From: minisbett <39670899+minisbett@users.noreply.github.com> Date: Fri, 18 Oct 2024 18:44:08 +0200 Subject: [PATCH] cleanup --- .../Leaderboard/LeaderboardCommand.cs | 1 - PerformanceCalculator/Profile/ProfileCommand.cs | 1 - PerformanceCalculator/Simulate/SimulateCommand.cs | 11 ++--------- 3 files changed, 2 insertions(+), 11 deletions(-) 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)