Remove more local music controller caches

This commit is contained in:
smoogipoo 2020-08-11 13:11:59 +09:00
parent 7d35893ecd
commit 322d08af1b
2 changed files with 0 additions and 9 deletions

View File

@ -1,7 +1,6 @@
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence. // 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. // See the LICENCE file in the repository root for full licence text.
using osu.Framework.Allocation;
using osu.Framework.Graphics; using osu.Framework.Graphics;
using osu.Framework.Graphics.Containers; using osu.Framework.Graphics.Containers;
using osu.Game.Overlays; using osu.Game.Overlays;
@ -11,14 +10,10 @@ namespace osu.Game.Tests.Visual.Menus
{ {
public class TestSceneSongTicker : OsuTestScene public class TestSceneSongTicker : OsuTestScene
{ {
[Cached]
private MusicController musicController = new MusicController();
public TestSceneSongTicker() public TestSceneSongTicker()
{ {
AddRange(new Drawable[] AddRange(new Drawable[]
{ {
musicController,
new SongTicker new SongTicker
{ {
Anchor = Anchor.Centre, Anchor = Anchor.Centre,

View File

@ -26,9 +26,6 @@ namespace osu.Game.Tests.Visual.UserInterface
{ {
private readonly NowPlayingOverlay np; private readonly NowPlayingOverlay np;
[Cached]
private MusicController musicController = new MusicController();
public TestSceneBeatSyncedContainer() public TestSceneBeatSyncedContainer()
{ {
Clock = new FramedClock(); Clock = new FramedClock();
@ -36,7 +33,6 @@ namespace osu.Game.Tests.Visual.UserInterface
AddRange(new Drawable[] AddRange(new Drawable[]
{ {
musicController,
new BeatContainer new BeatContainer
{ {
Anchor = Anchor.BottomCentre, Anchor = Anchor.BottomCentre,