mirror of
https://github.com/ppy/osu.git
synced 2024-12-14 17:32:54 +08:00
Fix the warnings
This commit is contained in:
parent
c2020742b2
commit
499ecd3843
@ -27,10 +27,10 @@ namespace osu.Game.Tests.Visual
|
||||
};
|
||||
|
||||
private readonly ChatTabControl chatTabControl;
|
||||
private readonly SpriteText currentText;
|
||||
|
||||
public TestCaseChatTabControl()
|
||||
{
|
||||
SpriteText currentText;
|
||||
Add(new Container
|
||||
{
|
||||
RelativeSizeAxes = Axes.X,
|
||||
@ -57,7 +57,7 @@ namespace osu.Game.Tests.Visual
|
||||
}
|
||||
});
|
||||
|
||||
Add(new Container()
|
||||
Add(new Container
|
||||
{
|
||||
Origin = Anchor.TopLeft,
|
||||
Anchor = Anchor.TopLeft,
|
||||
@ -89,7 +89,7 @@ namespace osu.Game.Tests.Visual
|
||||
|
||||
private void addChannel(string name)
|
||||
{
|
||||
this.chatTabControl.AddItem(new Channel
|
||||
chatTabControl.AddItem(new Channel
|
||||
{
|
||||
Name = name
|
||||
});
|
||||
|
@ -11,7 +11,6 @@ using osu.Framework.Graphics.Shapes;
|
||||
using osu.Framework.Graphics.UserInterface;
|
||||
using osu.Game.Graphics;
|
||||
using osu.Game.Graphics.Sprites;
|
||||
using osu.Game.Online.API;
|
||||
using osu.Game.Online.Chat;
|
||||
using osu.Game.Screens.Menu;
|
||||
using osu.Game.Users;
|
||||
@ -23,7 +22,6 @@ namespace osu.Game.Overlays.Chat
|
||||
public class UserTabItem : TabItem<Channel>
|
||||
{
|
||||
private static readonly Vector2 shear = new Vector2(1f / 5f, 0);
|
||||
private readonly Channel channel;
|
||||
public override bool IsRemovable => true;
|
||||
|
||||
private readonly Box highlightBox;
|
||||
@ -39,7 +37,6 @@ namespace osu.Game.Overlays.Chat
|
||||
if (value.Target != TargetType.User)
|
||||
throw new ArgumentException("Argument value needs to have the targettype user!");
|
||||
|
||||
channel = value;
|
||||
AutoSizeAxes = Axes.X;
|
||||
Height = 50;
|
||||
Origin = Anchor.BottomRight;
|
||||
@ -208,7 +205,7 @@ namespace osu.Game.Overlays.Chat
|
||||
}
|
||||
|
||||
[BackgroundDependencyLoader]
|
||||
private void load(OsuColour colours, IAPIProvider api)
|
||||
private void load(OsuColour colours)
|
||||
{
|
||||
var user = Value.JoinedUsers.First();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user