mirror of
https://github.com/ppy/osu.git
synced 2025-02-13 12:02:54 +08:00
Remove no-longer-necessary guard
This commit is contained in:
parent
2266a5c9a0
commit
93539160ad
@ -12,7 +12,6 @@ using osu.Framework.Bindables;
|
||||
using osu.Framework.Graphics;
|
||||
using osu.Framework.Graphics.Containers;
|
||||
using osu.Framework.Input.Events;
|
||||
using osu.Framework.Lists;
|
||||
using osu.Framework.Utils;
|
||||
using osu.Game.Audio;
|
||||
using osu.Game.Configuration;
|
||||
@ -407,11 +406,6 @@ namespace osu.Game.Overlays.Mods
|
||||
.Select(modState => modState.Mod)
|
||||
.ToArray();
|
||||
|
||||
// the following guard intends to check cases where we've already replaced potentially-external mod references with our own and avoid endless recursion.
|
||||
// TODO: replace custom comparer with System.Collections.Generic.ReferenceEqualityComparer when fully on .NET 6
|
||||
if (candidateSelection.SequenceEqual(SelectedMods.Value, new FuncEqualityComparer<Mod>(ReferenceEquals)))
|
||||
return;
|
||||
|
||||
SelectedMods.Value = ComputeNewModsFromSelection(SelectedMods.Value, candidateSelection);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user