From d2af05b30e93f729ba40326bdaf51867817f65f2 Mon Sep 17 00:00:00 2001 From: Andrei Zavatski Date: Fri, 26 Jan 2024 04:09:00 +0300 Subject: [PATCH] Remove useless bindable from ArgonSongProgressBar --- .../Screens/Play/HUD/ArgonSongProgressBar.cs | 19 +------------------ 1 file changed, 1 insertion(+), 18 deletions(-) diff --git a/osu.Game/Screens/Play/HUD/ArgonSongProgressBar.cs b/osu.Game/Screens/Play/HUD/ArgonSongProgressBar.cs index beaee0e9ee..40311da646 100644 --- a/osu.Game/Screens/Play/HUD/ArgonSongProgressBar.cs +++ b/osu.Game/Screens/Play/HUD/ArgonSongProgressBar.cs @@ -3,7 +3,6 @@ using System; using osu.Framework.Allocation; -using osu.Framework.Bindables; using osu.Framework.Graphics; using osu.Framework.Graphics.Colour; using osu.Framework.Graphics.Containers; @@ -52,23 +51,14 @@ namespace osu.Game.Screens.Play.HUD set => CurrentNumber.Value = value; } - public double TrackTime - { - private get => currentTrackTime.Value; - set => currentTrackTime.Value = value; - } + public double TrackTime { private get; set; } private double length => EndTime - StartTime; - private readonly BindableNumber currentTrackTime; - public bool Interactive { get; set; } public ArgonSongProgressBar(float barHeight) { - currentTrackTime = new BindableDouble(); - setupAlternateValue(); - StartTime = 0; EndTime = 1; @@ -107,13 +97,6 @@ namespace osu.Game.Screens.Play.HUD }; } - private void setupAlternateValue() - { - CurrentNumber.MaxValueChanged += v => currentTrackTime.MaxValue = v; - CurrentNumber.MinValueChanged += v => currentTrackTime.MinValue = v; - CurrentNumber.PrecisionChanged += v => currentTrackTime.Precision = v; - } - private float normalizedReference { get