Remove redundant code

This commit is contained in:
Dean Herbert 2019-05-18 21:37:46 +09:00
parent bc46253299
commit 30e36627cf
2 changed files with 1 additions and 6 deletions

View File

@ -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;

View File

@ -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);