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:
parent
9c5eddea54
commit
6f25548737
@ -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)
|
||||
|
@ -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[]
|
||||
{
|
||||
|
@ -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)
|
||||
{
|
||||
|
@ -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)
|
||||
|
@ -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()
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user