From e2e28ef0ca07908b8430ed8c2ddd31fdf308e80d Mon Sep 17 00:00:00 2001 From: Dean Herbert Date: Tue, 10 Oct 2023 22:12:20 +0900 Subject: [PATCH] Remove comment regarding inlined delegate --- osu.Game/Screens/Play/HUD/ArgonHealthDisplay.cs | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/osu.Game/Screens/Play/HUD/ArgonHealthDisplay.cs b/osu.Game/Screens/Play/HUD/ArgonHealthDisplay.cs index d101a8fd64..9643eb8b48 100644 --- a/osu.Game/Screens/Play/HUD/ArgonHealthDisplay.cs +++ b/osu.Game/Screens/Play/HUD/ArgonHealthDisplay.cs @@ -139,11 +139,7 @@ namespace osu.Game.Screens.Play.HUD { base.LoadComplete(); - Current.BindValueChanged(v => - { - // For some reason making the delegate inline here doesn't work correctly. - Scheduler.AddOnce(updateCurrent); - }, true); + Current.BindValueChanged(_ => Scheduler.AddOnce(updateCurrent), true); BarLength.BindValueChanged(l => Width = l.NewValue, true); BarHeight.BindValueChanged(_ => updatePath());