1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-11 21:07:33 +08:00

remove redundant stuff

This commit is contained in:
Jorolf 2017-10-06 21:06:37 +02:00
parent de2181b8f5
commit f3ca6cc387
3 changed files with 3 additions and 8 deletions

View File

@ -13,7 +13,6 @@ using osu.Game.Graphics;
using osu.Game.Graphics.Containers;
using OpenTK;
using OpenTK.Graphics;
using osu.Game.Audio;
using osu.Game.Overlays.Direct;
using osu.Framework.Configuration;
@ -23,7 +22,6 @@ namespace osu.Game.Overlays.BeatmapSet
{
private const float transition_duration = 500;
private readonly Container audioWrapper;
private readonly Box bg, progress;
private readonly PlayButton playButton;
@ -42,7 +40,6 @@ namespace osu.Game.Overlays.BeatmapSet
Children = new Drawable[]
{
audioWrapper = new Container(),
bg = new Box
{
RelativeSizeAxes = Axes.Both,
@ -61,7 +58,7 @@ namespace osu.Game.Overlays.BeatmapSet
Alpha = 0f,
},
},
playButton = new PlayButton()
playButton = new PlayButton
{
Anchor = Anchor.Centre,
Origin = Anchor.Centre,

View File

@ -22,7 +22,6 @@ using osu.Game.Overlays.Notifications;
using osu.Game.Online.API.Requests;
using osu.Framework.Configuration;
using osu.Framework.Audio.Track;
using osu.Game.Audio;
namespace osu.Game.Overlays.Direct
{

View File

@ -9,7 +9,6 @@ using osu.Framework.Configuration;
using osu.Framework.Graphics;
using osu.Framework.Graphics.Containers;
using osu.Framework.Input;
using osu.Game.Audio;
using osu.Game.Beatmaps;
using osu.Game.Graphics;
using osu.Game.Graphics.UserInterface;
@ -38,7 +37,7 @@ namespace osu.Game.Overlays.Direct
private Color4 hoverColour;
private readonly SpriteIcon icon;
private readonly LoadingAnimation loadingAnimation;
private Container audioWrapper;
private readonly Container audioWrapper;
private const float transition_duration = 500;
@ -64,7 +63,7 @@ namespace osu.Game.Overlays.Direct
public PlayButton(BeatmapSetInfo setInfo = null)
{
this.SetInfo = setInfo;
SetInfo = setInfo;
AddRange(new Drawable[]
{
audioWrapper = new Container(),