mirror of
https://github.com/ppy/osu
synced 2025-01-19 20:40:52 +00:00
Remove redundant code
This commit is contained in:
parent
bc46253299
commit
30e36627cf
@ -22,7 +22,7 @@ namespace osu.Game.Tournament.Screens.Gameplay.Components
|
||||
public class MatchHeader : Container
|
||||
{
|
||||
[BackgroundDependencyLoader]
|
||||
private void load(LadderInfo ladder)
|
||||
private void load()
|
||||
{
|
||||
RelativeSizeAxes = Axes.X;
|
||||
Height = 95;
|
||||
|
@ -10,7 +10,6 @@ using osu.Framework.Graphics.Shapes;
|
||||
using osu.Game.Graphics;
|
||||
using osu.Game.Graphics.UserInterface;
|
||||
using osu.Game.Tournament.IPC;
|
||||
using osu.Game.Tournament.Screens.Ladder.Components;
|
||||
using osuTK.Graphics;
|
||||
|
||||
namespace osu.Game.Tournament.Screens.Gameplay.Components
|
||||
@ -22,8 +21,6 @@ namespace osu.Game.Tournament.Screens.Gameplay.Components
|
||||
|
||||
private const float bar_height = 20;
|
||||
|
||||
private readonly Bindable<MatchPairing> currentMatch = new Bindable<MatchPairing>();
|
||||
|
||||
private readonly BindableInt score1 = new BindableInt();
|
||||
private readonly BindableInt score2 = new BindableInt();
|
||||
|
||||
@ -78,8 +75,6 @@ namespace osu.Game.Tournament.Screens.Gameplay.Components
|
||||
[BackgroundDependencyLoader]
|
||||
private void load(LadderInfo ladder, MatchIPCInfo ipc)
|
||||
{
|
||||
currentMatch.BindTo(ladder.CurrentMatch);
|
||||
|
||||
score1.BindValueChanged(_ => updateScores());
|
||||
score1.BindTo(ipc.Score1);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user