mirror of
https://github.com/ppy/osu.git
synced 2025-01-14 04:02:59 +08:00
remove redundant stuff
This commit is contained in:
parent
0449639f41
commit
b2c3ba05d7
@ -3,7 +3,6 @@
|
||||
|
||||
using osu.Game.Online.API.Requests;
|
||||
using osu.Game.Overlays.Profile.Sections.Ranks;
|
||||
using osu.Game.Users;
|
||||
|
||||
namespace osu.Game.Overlays.Profile.Sections
|
||||
{
|
||||
@ -13,11 +12,9 @@ namespace osu.Game.Overlays.Profile.Sections
|
||||
|
||||
public override string Identifier => "historical";
|
||||
|
||||
private readonly ScoreContainer recent;
|
||||
|
||||
public HistoricalSection()
|
||||
{
|
||||
Child = recent = new ScoreContainer(ScoreType.Recent, User, "Recent Plays (24h)");
|
||||
Child = new ScoreContainer(ScoreType.Recent, User, "Recent Plays (24h)");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -27,7 +27,7 @@ namespace osu.Game.Overlays.Profile.Sections.Ranks
|
||||
|
||||
public DrawableScore(Score score)
|
||||
{
|
||||
this.Score = score;
|
||||
Score = score;
|
||||
|
||||
Children = new Drawable[]
|
||||
{
|
||||
|
@ -1,10 +1,8 @@
|
||||
// Copyright (c) 2007-2017 ppy Pty Ltd <contact@ppy.sh>.
|
||||
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
|
||||
|
||||
using osu.Framework.Graphics;
|
||||
using osu.Game.Overlays.Profile.Sections.Ranks;
|
||||
using osu.Game.Online.API.Requests;
|
||||
using osu.Game.Users;
|
||||
|
||||
namespace osu.Game.Overlays.Profile.Sections
|
||||
{
|
||||
@ -14,14 +12,12 @@ namespace osu.Game.Overlays.Profile.Sections
|
||||
|
||||
public override string Identifier => "top_ranks";
|
||||
|
||||
private readonly ScoreContainer best, first;
|
||||
|
||||
public RanksSection()
|
||||
{
|
||||
Children = new Drawable[]
|
||||
Children = new[]
|
||||
{
|
||||
best = new ScoreContainer(ScoreType.Best, User, "Best Performance", true),
|
||||
first = new ScoreContainer(ScoreType.Firsts, User, "First Place Ranks"),
|
||||
new ScoreContainer(ScoreType.Best, User, "Best Performance", true),
|
||||
new ScoreContainer(ScoreType.Firsts, User, "First Place Ranks"),
|
||||
};
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user