mirror of https://github.com/ppy/osu
Remove unnecessary nullability of storyboard mods list
This commit is contained in:
parent
2ce4faa356
commit
3630ab2db2
|
@ -1,7 +1,6 @@
|
|||
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
|
||||
// See the LICENCE file in the repository root for full licence text.
|
||||
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Threading;
|
||||
|
@ -64,7 +63,7 @@ protected override IReadOnlyDependencyContainer CreateChildDependencies(IReadOnl
|
|||
public DrawableStoryboard(Storyboard storyboard, IReadOnlyList<Mod> mods)
|
||||
{
|
||||
Storyboard = storyboard;
|
||||
Mods = mods ?? Array.Empty<Mod>();
|
||||
Mods = mods;
|
||||
|
||||
Size = new Vector2(640, 480);
|
||||
|
||||
|
|
|
@ -91,7 +91,7 @@ public bool ReplacesBackground
|
|||
}
|
||||
}
|
||||
|
||||
public DrawableStoryboard CreateDrawable(IReadOnlyList<Mod> mods = null) =>
|
||||
public DrawableStoryboard CreateDrawable(IReadOnlyList<Mod> mods) =>
|
||||
new DrawableStoryboard(this, mods);
|
||||
|
||||
public Drawable CreateSpriteFromResourcePath(string path, TextureStore textureStore)
|
||||
|
|
Loading…
Reference in New Issue