mirror of
https://github.com/ppy/osu.git
synced 2025-03-10 03:57:20 +08:00
Remove now unnecessary null setters
This commit is contained in:
parent
9c5eddea54
commit
6f25548737
@ -24,10 +24,10 @@ namespace osu.Game.Tournament.Tests
|
|||||||
private Storage storage;
|
private Storage storage;
|
||||||
|
|
||||||
[Resolved]
|
[Resolved]
|
||||||
private APIAccess api { get; set; } = null;
|
private APIAccess api { get; set; }
|
||||||
|
|
||||||
[Resolved]
|
[Resolved]
|
||||||
private RulesetStore rulesets { get; set; } = null;
|
private RulesetStore rulesets { get; set; }
|
||||||
|
|
||||||
[BackgroundDependencyLoader]
|
[BackgroundDependencyLoader]
|
||||||
private void load(Storage storage)
|
private void load(Storage storage)
|
||||||
|
@ -18,10 +18,10 @@ namespace osu.Game.Tournament.Tests
|
|||||||
public class TestCaseBeatmapPanel : OsuTestCase
|
public class TestCaseBeatmapPanel : OsuTestCase
|
||||||
{
|
{
|
||||||
[Resolved]
|
[Resolved]
|
||||||
private APIAccess api { get; set; } = null;
|
private APIAccess api { get; set; }
|
||||||
|
|
||||||
[Resolved]
|
[Resolved]
|
||||||
private RulesetStore rulesets { get; set; } = null;
|
private RulesetStore rulesets { get; set; }
|
||||||
|
|
||||||
public override IReadOnlyList<Type> RequiredTypes => new[]
|
public override IReadOnlyList<Type> RequiredTypes => new[]
|
||||||
{
|
{
|
||||||
|
@ -23,7 +23,7 @@ namespace osu.Game.Tournament.Screens.Ladder.Components
|
|||||||
private Bindable<MatchPairing> globalSelection;
|
private Bindable<MatchPairing> globalSelection;
|
||||||
|
|
||||||
[Resolved(CanBeNull = true)]
|
[Resolved(CanBeNull = true)]
|
||||||
private LadderEditorInfo editorInfo { get; set; } = null;
|
private LadderEditorInfo editorInfo { get; set; }
|
||||||
|
|
||||||
public DrawableMatchPairing(MatchPairing pairing)
|
public DrawableMatchPairing(MatchPairing pairing)
|
||||||
{
|
{
|
||||||
|
@ -37,7 +37,7 @@ namespace osu.Game.Tournament.Screens.Ladder.Components
|
|||||||
private LadderManager manager;
|
private LadderManager manager;
|
||||||
|
|
||||||
[Resolved(CanBeNull = true)]
|
[Resolved(CanBeNull = true)]
|
||||||
private LadderEditorInfo editorInfo { get; set; } = null;
|
private LadderEditorInfo editorInfo { get; set; }
|
||||||
|
|
||||||
public DrawableMatchTeam(Bindable<TournamentTeam> team, MatchPairing pairing, bool losers)
|
public DrawableMatchTeam(Bindable<TournamentTeam> team, MatchPairing pairing, bool losers)
|
||||||
: base(team)
|
: base(team)
|
||||||
|
@ -26,7 +26,7 @@ namespace osu.Game.Tournament.Screens.Ladder.Components
|
|||||||
private PlayerCheckbox losersCheckbox;
|
private PlayerCheckbox losersCheckbox;
|
||||||
|
|
||||||
[Resolved]
|
[Resolved]
|
||||||
private LadderEditorInfo editorInfo { get; set; } = null;
|
private LadderEditorInfo editorInfo { get; set; }
|
||||||
|
|
||||||
[BackgroundDependencyLoader]
|
[BackgroundDependencyLoader]
|
||||||
private void load()
|
private void load()
|
||||||
|
@ -25,14 +25,14 @@ namespace osu.Game.Tournament.Screens.Showcase
|
|||||||
{
|
{
|
||||||
public class ShowcaseScreen : OsuScreen
|
public class ShowcaseScreen : OsuScreen
|
||||||
{
|
{
|
||||||
private Container panel;
|
private readonly Container panel;
|
||||||
private readonly Container panelContents;
|
private readonly Container panelContents;
|
||||||
|
|
||||||
[Resolved]
|
[Resolved]
|
||||||
private APIAccess api { get; set; } = null;
|
private APIAccess api { get; set; }
|
||||||
|
|
||||||
[Resolved]
|
[Resolved]
|
||||||
private RulesetStore rulesets { get; set; } = null;
|
private RulesetStore rulesets { get; set; }
|
||||||
|
|
||||||
private int lastBeatmapId;
|
private int lastBeatmapId;
|
||||||
private int lastMods;
|
private int lastMods;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user