Remove unused user instance for now.

This commit is contained in:
Huo Yaoyuan 2017-06-15 08:00:15 +08:00
parent b37c3f8ce1
commit 4c8658980b
8 changed files with 7 additions and 37 deletions

View File

@ -6,9 +6,5 @@ namespace osu.Game.Users.Profile
public class AboutSection : ProfileSection public class AboutSection : ProfileSection
{ {
public override string Title => "me!"; public override string Title => "me!";
public AboutSection(User user)
{
}
} }
} }

View File

@ -6,9 +6,5 @@ namespace osu.Game.Users.Profile
public class BeatmapsSection : ProfileSection public class BeatmapsSection : ProfileSection
{ {
public override string Title => "Beatmaps"; public override string Title => "Beatmaps";
public BeatmapsSection(User user)
{
}
} }
} }

View File

@ -6,9 +6,5 @@ namespace osu.Game.Users.Profile
public class HistoricalSection : ProfileSection public class HistoricalSection : ProfileSection
{ {
public override string Title => "Historical"; public override string Title => "Historical";
public HistoricalSection(User user)
{
}
} }
} }

View File

@ -6,9 +6,5 @@ namespace osu.Game.Users.Profile
public class KudosuSection : ProfileSection public class KudosuSection : ProfileSection
{ {
public override string Title => "Kudosu!"; public override string Title => "Kudosu!";
public KudosuSection(User user)
{
}
} }
} }

View File

@ -6,9 +6,5 @@ namespace osu.Game.Users.Profile
public class MedalsSection : ProfileSection public class MedalsSection : ProfileSection
{ {
public override string Title => "Medals"; public override string Title => "Medals";
public MedalsSection(User user)
{
}
} }
} }

View File

@ -6,9 +6,5 @@ namespace osu.Game.Users.Profile
public class RanksSection : ProfileSection public class RanksSection : ProfileSection
{ {
public override string Title => "Ranks"; public override string Title => "Ranks";
public RanksSection(User user)
{
}
} }
} }

View File

@ -6,9 +6,5 @@ namespace osu.Game.Users.Profile
public class RecentSection : ProfileSection public class RecentSection : ProfileSection
{ {
public override string Title => "Recent"; public override string Title => "Recent";
public RecentSection(User user)
{
}
} }
} }

View File

@ -18,23 +18,21 @@ namespace osu.Game.Users
{ {
public class UserProfile : FocusedOverlayContainer public class UserProfile : FocusedOverlayContainer
{ {
private readonly User user;
private ProfileSection lastSection; private ProfileSection lastSection;
public const float CONTENT_X_MARGIN = 50; public const float CONTENT_X_MARGIN = 50;
public UserProfile(User user) public UserProfile(User user)
{ {
this.user = user;
var sections = new ProfileSection[] var sections = new ProfileSection[]
{ {
new AboutSection(user), new AboutSection(),
new RecentSection(user), new RecentSection(),
new RanksSection(user), new RanksSection(),
new MedalsSection(user), new MedalsSection(),
new HistoricalSection(user), new HistoricalSection(),
new BeatmapsSection(user), new BeatmapsSection(),
new KudosuSection(user) new KudosuSection()
}; };
var tabs = new ProfileTabControl var tabs = new ProfileTabControl
{ {