1
0
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:
Dean Herbert 2018-11-06 14:49:20 +09:00
parent 9c5eddea54
commit 6f25548737
6 changed files with 10 additions and 10 deletions

View File

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

View File

@ -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[]
{ {

View File

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

View File

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

View File

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

View File

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