1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-14 16:12:57 +08:00

Fix code quality issues

This commit is contained in:
TheWildTree 2020-03-26 16:11:58 +01:00
parent da996ffe74
commit 9a30ff5a00
4 changed files with 2 additions and 7 deletions

View File

@ -8,7 +8,6 @@ using System.Collections.Generic;
using osu.Framework.Graphics; using osu.Framework.Graphics;
using osu.Game.Graphics.Sprites; using osu.Game.Graphics.Sprites;
using osu.Framework.Allocation; using osu.Framework.Allocation;
using osu.Game.Graphics.UserInterface;
using osu.Framework.Graphics.Shapes; using osu.Framework.Graphics.Shapes;
using osuTK.Graphics; using osuTK.Graphics;

View File

@ -6,7 +6,6 @@ using osu.Framework.Allocation;
using osu.Framework.Graphics; using osu.Framework.Graphics;
using osu.Framework.Graphics.Containers; using osu.Framework.Graphics.Containers;
using osu.Framework.Graphics.Shapes; using osu.Framework.Graphics.Shapes;
using osu.Game.Graphics.UserInterface;
using osuTK.Graphics; using osuTK.Graphics;
namespace osu.Game.Overlays namespace osu.Game.Overlays
@ -14,7 +13,6 @@ namespace osu.Game.Overlays
public abstract class OverlayHeader : Container public abstract class OverlayHeader : Container
{ {
private readonly Box titleBackground; private readonly Box titleBackground;
private readonly OverlayTitle title;
protected readonly FillFlowContainer HeaderInfo; protected readonly FillFlowContainer HeaderInfo;
@ -60,7 +58,7 @@ namespace osu.Game.Overlays
}, },
Children = new[] Children = new[]
{ {
title = CreateTitle().With(title => CreateTitle().With(title =>
{ {
title.Anchor = Anchor.CentreLeft; title.Anchor = Anchor.CentreLeft;
title.Origin = Anchor.CentreLeft; title.Origin = Anchor.CentreLeft;

View File

@ -10,7 +10,6 @@ using osu.Framework.Graphics.Shapes;
using osu.Framework.Graphics.UserInterface; using osu.Framework.Graphics.UserInterface;
using osu.Game.Graphics; using osu.Game.Graphics;
using osu.Game.Graphics.UserInterface; using osu.Game.Graphics.UserInterface;
using osuTK;
namespace osu.Game.Overlays namespace osu.Game.Overlays
{ {

View File

@ -81,7 +81,7 @@ namespace osu.Game.Screens.Multi
private const float spacing = 6; private const float spacing = 6;
private const int text_offset = 2; private const int text_offset = 2;
private SpriteIcon iconSprite; private readonly SpriteIcon iconSprite;
private readonly OsuSpriteText titleText, pageText; private readonly OsuSpriteText titleText, pageText;
public IMultiplayerSubScreen Screen public IMultiplayerSubScreen Screen
@ -101,7 +101,6 @@ namespace osu.Game.Screens.Multi
} }
public MultiHeaderTitle() public MultiHeaderTitle()
: base()
{ {
AutoSizeAxes = Axes.Both; AutoSizeAxes = Axes.Both;