1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-11 10:07:52 +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;
[Resolved]
private APIAccess api { get; set; } = null;
private APIAccess api { get; set; }
[Resolved]
private RulesetStore rulesets { get; set; } = null;
private RulesetStore rulesets { get; set; }
[BackgroundDependencyLoader]
private void load(Storage storage)

View File

@ -18,10 +18,10 @@ namespace osu.Game.Tournament.Tests
public class TestCaseBeatmapPanel : OsuTestCase
{
[Resolved]
private APIAccess api { get; set; } = null;
private APIAccess api { get; set; }
[Resolved]
private RulesetStore rulesets { get; set; } = null;
private RulesetStore rulesets { get; set; }
public override IReadOnlyList<Type> RequiredTypes => new[]
{

View File

@ -23,7 +23,7 @@ namespace osu.Game.Tournament.Screens.Ladder.Components
private Bindable<MatchPairing> globalSelection;
[Resolved(CanBeNull = true)]
private LadderEditorInfo editorInfo { get; set; } = null;
private LadderEditorInfo editorInfo { get; set; }
public DrawableMatchPairing(MatchPairing pairing)
{

View File

@ -37,7 +37,7 @@ namespace osu.Game.Tournament.Screens.Ladder.Components
private LadderManager manager;
[Resolved(CanBeNull = true)]
private LadderEditorInfo editorInfo { get; set; } = null;
private LadderEditorInfo editorInfo { get; set; }
public DrawableMatchTeam(Bindable<TournamentTeam> team, MatchPairing pairing, bool losers)
: base(team)

View File

@ -26,7 +26,7 @@ namespace osu.Game.Tournament.Screens.Ladder.Components
private PlayerCheckbox losersCheckbox;
[Resolved]
private LadderEditorInfo editorInfo { get; set; } = null;
private LadderEditorInfo editorInfo { get; set; }
[BackgroundDependencyLoader]
private void load()

View File

@ -25,14 +25,14 @@ namespace osu.Game.Tournament.Screens.Showcase
{
public class ShowcaseScreen : OsuScreen
{
private Container panel;
private readonly Container panel;
private readonly Container panelContents;
[Resolved]
private APIAccess api { get; set; } = null;
private APIAccess api { get; set; }
[Resolved]
private RulesetStore rulesets { get; set; } = null;
private RulesetStore rulesets { get; set; }
private int lastBeatmapId;
private int lastMods;