diff --git a/osu.Game/Overlays/Profile/Sections/HistoricalSection.cs b/osu.Game/Overlays/Profile/Sections/HistoricalSection.cs index 1af3475dff..8bc13118b2 100644 --- a/osu.Game/Overlays/Profile/Sections/HistoricalSection.cs +++ b/osu.Game/Overlays/Profile/Sections/HistoricalSection.cs @@ -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)"); } } } diff --git a/osu.Game/Overlays/Profile/Sections/Ranks/DrawableScore.cs b/osu.Game/Overlays/Profile/Sections/Ranks/DrawableScore.cs index c45296d866..3949d6ca59 100644 --- a/osu.Game/Overlays/Profile/Sections/Ranks/DrawableScore.cs +++ b/osu.Game/Overlays/Profile/Sections/Ranks/DrawableScore.cs @@ -27,7 +27,7 @@ namespace osu.Game.Overlays.Profile.Sections.Ranks public DrawableScore(Score score) { - this.Score = score; + Score = score; Children = new Drawable[] { diff --git a/osu.Game/Overlays/Profile/Sections/RanksSection.cs b/osu.Game/Overlays/Profile/Sections/RanksSection.cs index 284053a0dc..aeb9bdc31e 100644 --- a/osu.Game/Overlays/Profile/Sections/RanksSection.cs +++ b/osu.Game/Overlays/Profile/Sections/RanksSection.cs @@ -1,10 +1,8 @@ // Copyright (c) 2007-2017 ppy Pty Ltd . // 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"), }; } }