1
0
mirror of https://github.com/ppy/osu.git synced 2024-09-21 21:27:24 +08:00

Remove mods dependency

BPM is not in the wedge anymore.
This commit is contained in:
Joseph Madamba 2023-09-05 12:14:17 -07:00
parent 6e6dd86a51
commit b63c1e4257
No known key found for this signature in database
GPG Key ID: 8B746C7BDDF0BD76

View File

@ -2,7 +2,6 @@
// See the LICENCE file in the repository root for full licence text.
using System;
using System.Collections.Generic;
using System.Threading;
using osuTK;
using osu.Framework.Allocation;
@ -16,10 +15,8 @@ using osu.Game.Graphics;
using osu.Game.Graphics.Sprites;
using osu.Framework.Graphics.Shapes;
using osu.Framework.Localisation;
using osu.Game.Configuration;
using osu.Game.Graphics.UserInterface;
using osu.Game.Rulesets;
using osu.Game.Rulesets.Mods;
namespace osu.Game.Screens.Select
{
@ -221,14 +218,9 @@ namespace osu.Game.Screens.Select
public IBindable<double> DisplayedStars => starRatingDisplay.DisplayedStars;
public Bindable<double> ActualStars = new Bindable<double>();
[Resolved]
private IBindable<IReadOnlyList<Mod>> mods { get; set; } = null!;
[Resolved]
private BeatmapDifficultyCache difficultyCache { get; set; } = null!;
private ModSettingChangeTracker? settingChangeTracker;
private IBindable<StarDifficulty?>? starDifficulty;
private CancellationTokenSource? cancellationSource;
@ -325,13 +317,6 @@ namespace osu.Game.Screens.Select
starRatingDisplay.FadeIn(transition_duration);
});
mods.BindValueChanged(m =>
{
settingChangeTracker?.Dispose();
settingChangeTracker = new ModSettingChangeTracker(m.NewValue);
}, true);
}
protected override void Dispose(bool isDisposing)
@ -339,7 +324,6 @@ namespace osu.Game.Screens.Select
base.Dispose(isDisposing);
cancellationSource?.Cancel();
settingChangeTracker?.Dispose();
}
}
}