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:
parent
a7be632770
commit
0223c569df
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user