1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-14 18:33:20 +08:00

Remove no longer necessary method definitions

This commit is contained in:
Salman Ahmed 2021-07-09 00:48:48 +03:00
parent a7be632770
commit 0223c569df

View File

@ -35,9 +35,9 @@ namespace osu.Game.Overlays
current?.UnbindAll();
current = value.GetBoundCopy();
current.ValueChanged += onValueChanged;
current.DefaultChanged += onDefaultChanged;
current.DisabledChanged += onDisabledChanged;
current.ValueChanged += _ => UpdateState();
current.DefaultChanged += _ => UpdateState();
current.DisabledChanged += _ => UpdateState();
UpdateState();
}
}
@ -93,10 +93,6 @@ namespace osu.Game.Overlays
UpdateState();
}
private void onValueChanged(ValueChangedEvent<T> _) => UpdateState();
private void onDefaultChanged(ValueChangedEvent<T> _) => UpdateState();
private void onDisabledChanged(bool _) => UpdateState();
public void UpdateState() => Scheduler.AddOnce(updateState);
private void updateState()