Remove participant count (not returned by API)

This commit is contained in:
smoogipoo 2020-01-14 14:41:38 +09:00
parent 05702af905
commit 33993837b7
3 changed files with 0 additions and 9 deletions

View File

@ -41,21 +41,18 @@ namespace osu.Game.Tests.Visual.Online
Name = "Spotlight 1",
StartDate = DateTimeOffset.Now,
EndDate = DateTimeOffset.Now,
ParticipantCount = 100
},
new APISpotlight
{
Name = "Spotlight 2",
StartDate = DateTimeOffset.Now,
EndDate = DateTimeOffset.Now,
ParticipantCount = 200
},
new APISpotlight
{
Name = "Spotlight 3",
StartDate = DateTimeOffset.Now,
EndDate = DateTimeOffset.Now,
ParticipantCount = 300
},
};

View File

@ -26,9 +26,6 @@ namespace osu.Game.Online.API.Requests.Responses
[JsonProperty(@"end_date")]
public DateTimeOffset EndDate;
[JsonProperty(@"participant_count")]
public int ParticipantCount;
public override string ToString() => Name;
}
}

View File

@ -38,7 +38,6 @@ namespace osu.Game.Overlays.Rankings
private readonly InfoColumn startDateColumn;
private readonly InfoColumn endDateColumn;
private readonly InfoColumn participants;
public SpotlightSelector()
{
@ -75,7 +74,6 @@ namespace osu.Game.Overlays.Rankings
{
startDateColumn = new InfoColumn(@"Start Date"),
endDateColumn = new InfoColumn(@"End Date"),
participants = new InfoColumn(@"Participants"),
}
}
}
@ -100,7 +98,6 @@ namespace osu.Game.Overlays.Rankings
{
startDateColumn.Value = dateToString(spotlight.NewValue.StartDate);
endDateColumn.Value = dateToString(spotlight.NewValue.EndDate);
participants.Value = spotlight.NewValue.ParticipantCount.ToString();
}
private string dateToString(DateTimeOffset date) => date.ToString("yyyy-MM-dd");