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

Fix the warnings

This commit is contained in:
miterosan 2018-04-11 20:44:35 +02:00
parent c2020742b2
commit 499ecd3843
2 changed files with 4 additions and 7 deletions

View File

@ -27,10 +27,10 @@ namespace osu.Game.Tests.Visual
}; };
private readonly ChatTabControl chatTabControl; private readonly ChatTabControl chatTabControl;
private readonly SpriteText currentText;
public TestCaseChatTabControl() public TestCaseChatTabControl()
{ {
SpriteText currentText;
Add(new Container Add(new Container
{ {
RelativeSizeAxes = Axes.X, RelativeSizeAxes = Axes.X,
@ -57,7 +57,7 @@ namespace osu.Game.Tests.Visual
} }
}); });
Add(new Container() Add(new Container
{ {
Origin = Anchor.TopLeft, Origin = Anchor.TopLeft,
Anchor = Anchor.TopLeft, Anchor = Anchor.TopLeft,
@ -89,7 +89,7 @@ namespace osu.Game.Tests.Visual
private void addChannel(string name) private void addChannel(string name)
{ {
this.chatTabControl.AddItem(new Channel chatTabControl.AddItem(new Channel
{ {
Name = name Name = name
}); });

View File

@ -11,7 +11,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.Sprites; using osu.Game.Graphics.Sprites;
using osu.Game.Online.API;
using osu.Game.Online.Chat; using osu.Game.Online.Chat;
using osu.Game.Screens.Menu; using osu.Game.Screens.Menu;
using osu.Game.Users; using osu.Game.Users;
@ -23,7 +22,6 @@ namespace osu.Game.Overlays.Chat
public class UserTabItem : TabItem<Channel> public class UserTabItem : TabItem<Channel>
{ {
private static readonly Vector2 shear = new Vector2(1f / 5f, 0); private static readonly Vector2 shear = new Vector2(1f / 5f, 0);
private readonly Channel channel;
public override bool IsRemovable => true; public override bool IsRemovable => true;
private readonly Box highlightBox; private readonly Box highlightBox;
@ -39,7 +37,6 @@ namespace osu.Game.Overlays.Chat
if (value.Target != TargetType.User) if (value.Target != TargetType.User)
throw new ArgumentException("Argument value needs to have the targettype user!"); throw new ArgumentException("Argument value needs to have the targettype user!");
channel = value;
AutoSizeAxes = Axes.X; AutoSizeAxes = Axes.X;
Height = 50; Height = 50;
Origin = Anchor.BottomRight; Origin = Anchor.BottomRight;
@ -208,7 +205,7 @@ namespace osu.Game.Overlays.Chat
} }
[BackgroundDependencyLoader] [BackgroundDependencyLoader]
private void load(OsuColour colours, IAPIProvider api) private void load(OsuColour colours)
{ {
var user = Value.JoinedUsers.First(); var user = Value.JoinedUsers.First();