mirror of https://github.com/ppy/osu
Remove unnecessary local bindable
This commit is contained in:
parent
7dbb4d919b
commit
d25ef1966d
|
@ -20,7 +20,6 @@ public class SongTicker : Container
|
|||
[Resolved]
|
||||
private Bindable<WorkingBeatmap> beatmap { get; set; }
|
||||
|
||||
private readonly Bindable<WorkingBeatmap> workingBeatmap = new Bindable<WorkingBeatmap>();
|
||||
private readonly OsuSpriteText title, artist;
|
||||
|
||||
public SongTicker()
|
||||
|
@ -52,8 +51,7 @@ public SongTicker()
|
|||
protected override void LoadComplete()
|
||||
{
|
||||
base.LoadComplete();
|
||||
workingBeatmap.BindTo(beatmap);
|
||||
workingBeatmap.BindValueChanged(onBeatmapChanged);
|
||||
beatmap.BindValueChanged(onBeatmapChanged);
|
||||
}
|
||||
|
||||
private void onBeatmapChanged(ValueChangedEvent<WorkingBeatmap> working)
|
||||
|
|
Loading…
Reference in New Issue