1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-12 21:43:22 +08:00

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 override string Title => "me!";
public AboutSection(User user)
{
}
}
}

View File

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

View File

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

View File

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

View File

@ -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
{