Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
minisbett committed Oct 18, 2024
1 parent 121458a commit 4ae649d
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 11 deletions.
1 change: 0 additions & 1 deletion PerformanceCalculator/Leaderboard/LeaderboardCommand.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@

using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using Alba.CsConsoleFormat;
using JetBrains.Annotations;
Expand Down
1 change: 0 additions & 1 deletion PerformanceCalculator/Profile/ProfileCommand.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@

using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using Alba.CsConsoleFormat;
using JetBrains.Annotations;
Expand Down
11 changes: 2 additions & 9 deletions PerformanceCalculator/Simulate/SimulateCommand.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -97,14 +91,13 @@ protected Mod[] GetMods(Ruleset ruleset)
if (Mods == null)
return Array.Empty<Mod>();

var availableMods = ruleset.CreateAllMods().ToList();
var mods = new List<Mod>();

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)
Expand Down

0 comments on commit 4ae649d

Please sign in to comment.