mirror of
https://github.com/osukey/osukey.git
synced 2025-05-30 09:57:21 +09: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
|
public class MatchHeader : Container
|
||||||
{
|
{
|
||||||
[BackgroundDependencyLoader]
|
[BackgroundDependencyLoader]
|
||||||
private void load(LadderInfo ladder)
|
private void load()
|
||||||
{
|
{
|
||||||
RelativeSizeAxes = Axes.X;
|
RelativeSizeAxes = Axes.X;
|
||||||
Height = 95;
|
Height = 95;
|
||||||
|
@ -10,7 +10,6 @@ using osu.Framework.Graphics.Shapes;
|
|||||||
using osu.Game.Graphics;
|
using osu.Game.Graphics;
|
||||||
using osu.Game.Graphics.UserInterface;
|
using osu.Game.Graphics.UserInterface;
|
||||||
using osu.Game.Tournament.IPC;
|
using osu.Game.Tournament.IPC;
|
||||||
using osu.Game.Tournament.Screens.Ladder.Components;
|
|
||||||
using osuTK.Graphics;
|
using osuTK.Graphics;
|
||||||
|
|
||||||
namespace osu.Game.Tournament.Screens.Gameplay.Components
|
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 const float bar_height = 20;
|
||||||
|
|
||||||
private readonly Bindable<MatchPairing> currentMatch = new Bindable<MatchPairing>();
|
|
||||||
|
|
||||||
private readonly BindableInt score1 = new BindableInt();
|
private readonly BindableInt score1 = new BindableInt();
|
||||||
private readonly BindableInt score2 = new BindableInt();
|
private readonly BindableInt score2 = new BindableInt();
|
||||||
|
|
||||||
@ -78,8 +75,6 @@ namespace osu.Game.Tournament.Screens.Gameplay.Components
|
|||||||
[BackgroundDependencyLoader]
|
[BackgroundDependencyLoader]
|
||||||
private void load(LadderInfo ladder, MatchIPCInfo ipc)
|
private void load(LadderInfo ladder, MatchIPCInfo ipc)
|
||||||
{
|
{
|
||||||
currentMatch.BindTo(ladder.CurrentMatch);
|
|
||||||
|
|
||||||
score1.BindValueChanged(_ => updateScores());
|
score1.BindValueChanged(_ => updateScores());
|
||||||
score1.BindTo(ipc.Score1);
|
score1.BindTo(ipc.Score1);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user