From 7ed30af2df15364b5dc2d2923b5fa05bf0036508 Mon Sep 17 00:00:00 2001 From: Hivie Date: Sat, 9 Aug 2025 22:51:07 +0100 Subject: [PATCH] fix warnings --- osu.Game/Screens/Play/HUD/UnstableRateCounter.cs | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/osu.Game/Screens/Play/HUD/UnstableRateCounter.cs b/osu.Game/Screens/Play/HUD/UnstableRateCounter.cs index f64b206fc9..264f979fe2 100644 --- a/osu.Game/Screens/Play/HUD/UnstableRateCounter.cs +++ b/osu.Game/Screens/Play/HUD/UnstableRateCounter.cs @@ -20,7 +20,7 @@ namespace osu.Game.Screens.Play.HUD [Resolved] private ScoreProcessor scoreProcessor { get; set; } = null!; - public UnstableRateCounter() + protected UnstableRateCounter() { Current.Value = 0; } @@ -58,12 +58,8 @@ namespace osu.Game.Screens.Play.HUD { base.Dispose(isDisposing); - if (scoreProcessor != null) - { - scoreProcessor.NewJudgement -= updateDisplay; - scoreProcessor.JudgementReverted -= updateDisplay; - } + scoreProcessor.NewJudgement -= updateDisplay; + scoreProcessor.JudgementReverted -= updateDisplay; } - } }