From 4c8658980b65b0a3b80a7dda613ea6c06450400c Mon Sep 17 00:00:00 2001 From: Huo Yaoyuan Date: Thu, 15 Jun 2017 08:00:15 +0800 Subject: [PATCH] Remove unused user instance for now. --- osu.Game/Users/Profile/AboutSection.cs | 4 ---- osu.Game/Users/Profile/BeatmapsSection.cs | 4 ---- osu.Game/Users/Profile/HistoricalSection.cs | 4 ---- osu.Game/Users/Profile/KudosuSection.cs | 4 ---- osu.Game/Users/Profile/MedalsSection.cs | 4 ---- osu.Game/Users/Profile/RanksSection.cs | 4 ---- osu.Game/Users/Profile/RecentSection.cs | 4 ---- osu.Game/Users/UserProfile.cs | 16 +++++++--------- 8 files changed, 7 insertions(+), 37 deletions(-) diff --git a/osu.Game/Users/Profile/AboutSection.cs b/osu.Game/Users/Profile/AboutSection.cs index b2e5ae1b35..69ace5fc71 100644 --- a/osu.Game/Users/Profile/AboutSection.cs +++ b/osu.Game/Users/Profile/AboutSection.cs @@ -6,9 +6,5 @@ namespace osu.Game.Users.Profile public class AboutSection : ProfileSection { public override string Title => "me!"; - - public AboutSection(User user) - { - } } } diff --git a/osu.Game/Users/Profile/BeatmapsSection.cs b/osu.Game/Users/Profile/BeatmapsSection.cs index 4068283c73..a69c65c84a 100644 --- a/osu.Game/Users/Profile/BeatmapsSection.cs +++ b/osu.Game/Users/Profile/BeatmapsSection.cs @@ -6,9 +6,5 @@ namespace osu.Game.Users.Profile public class BeatmapsSection : ProfileSection { public override string Title => "Beatmaps"; - - public BeatmapsSection(User user) - { - } } } diff --git a/osu.Game/Users/Profile/HistoricalSection.cs b/osu.Game/Users/Profile/HistoricalSection.cs index 12d6d2a409..c5f357d322 100644 --- a/osu.Game/Users/Profile/HistoricalSection.cs +++ b/osu.Game/Users/Profile/HistoricalSection.cs @@ -6,9 +6,5 @@ namespace osu.Game.Users.Profile public class HistoricalSection : ProfileSection { public override string Title => "Historical"; - - public HistoricalSection(User user) - { - } } } diff --git a/osu.Game/Users/Profile/KudosuSection.cs b/osu.Game/Users/Profile/KudosuSection.cs index 312661f676..b489f6544d 100644 --- a/osu.Game/Users/Profile/KudosuSection.cs +++ b/osu.Game/Users/Profile/KudosuSection.cs @@ -6,9 +6,5 @@ namespace osu.Game.Users.Profile public class KudosuSection : ProfileSection { public override string Title => "Kudosu!"; - - public KudosuSection(User user) - { - } } } diff --git a/osu.Game/Users/Profile/MedalsSection.cs b/osu.Game/Users/Profile/MedalsSection.cs index 7db8c69222..0a52830340 100644 --- a/osu.Game/Users/Profile/MedalsSection.cs +++ b/osu.Game/Users/Profile/MedalsSection.cs @@ -6,9 +6,5 @@ namespace osu.Game.Users.Profile public class MedalsSection : ProfileSection { public override string Title => "Medals"; - - public MedalsSection(User user) - { - } } } diff --git a/osu.Game/Users/Profile/RanksSection.cs b/osu.Game/Users/Profile/RanksSection.cs index 1c51866218..65f3f04c1b 100644 --- a/osu.Game/Users/Profile/RanksSection.cs +++ b/osu.Game/Users/Profile/RanksSection.cs @@ -6,9 +6,5 @@ namespace osu.Game.Users.Profile public class RanksSection : ProfileSection { public override string Title => "Ranks"; - - public RanksSection(User user) - { - } } } diff --git a/osu.Game/Users/Profile/RecentSection.cs b/osu.Game/Users/Profile/RecentSection.cs index 96cf9d7a24..6cd3bf6c49 100644 --- a/osu.Game/Users/Profile/RecentSection.cs +++ b/osu.Game/Users/Profile/RecentSection.cs @@ -6,9 +6,5 @@ namespace osu.Game.Users.Profile public class RecentSection : ProfileSection { public override string Title => "Recent"; - - public RecentSection(User user) - { - } } } diff --git a/osu.Game/Users/UserProfile.cs b/osu.Game/Users/UserProfile.cs index 2470db1de5..03dce36528 100644 --- a/osu.Game/Users/UserProfile.cs +++ b/osu.Game/Users/UserProfile.cs @@ -18,23 +18,21 @@ namespace osu.Game.Users { public class UserProfile : FocusedOverlayContainer { - private readonly User user; private ProfileSection lastSection; public const float CONTENT_X_MARGIN = 50; public UserProfile(User user) { - this.user = user; var sections = new ProfileSection[] { - new AboutSection(user), - new RecentSection(user), - new RanksSection(user), - new MedalsSection(user), - new HistoricalSection(user), - new BeatmapsSection(user), - new KudosuSection(user) + new AboutSection(), + new RecentSection(), + new RanksSection(), + new MedalsSection(), + new HistoricalSection(), + new BeatmapsSection(), + new KudosuSection() }; var tabs = new ProfileTabControl {