1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-13 07:43:00 +08:00

Delete ScoreInfo.HasReplay as no longer needed

This commit is contained in:
Bartłomiej Dach 2023-10-27 12:39:54 +02:00
parent f931f4c324
commit 96d784e06b
No known key found for this signature in database
4 changed files with 2 additions and 6 deletions

View File

@ -213,7 +213,7 @@ namespace osu.Game.Tests.Visual.Gameplay
OnlineID = hasOnlineId ? online_score_id : 0, OnlineID = hasOnlineId ? online_score_id : 0,
Ruleset = new OsuRuleset().RulesetInfo, Ruleset = new OsuRuleset().RulesetInfo,
BeatmapInfo = beatmapManager.GetAllUsableBeatmapSets().First().Beatmaps.First(), BeatmapInfo = beatmapManager.GetAllUsableBeatmapSets().First().Beatmaps.First(),
Hash = replayAvailable ? "online" : string.Empty, HasOnlineReplay = replayAvailable,
User = new APIUser User = new APIUser
{ {
Id = 39828, Id = 39828,

View File

@ -22,8 +22,6 @@ namespace osu.Game.Scoring
double Accuracy { get; } double Accuracy { get; }
bool HasReplay { get; }
long LegacyOnlineID { get; } long LegacyOnlineID { get; }
DateTimeOffset Date { get; } DateTimeOffset Date { get; }

View File

@ -94,8 +94,6 @@ namespace osu.Game.Scoring
public double Accuracy { get; set; } public double Accuracy { get; set; }
public bool HasReplay => !string.IsNullOrEmpty(Hash) || HasOnlineReplay;
[Ignored] [Ignored]
public bool HasOnlineReplay { get; set; } public bool HasOnlineReplay { get; set; }

View File

@ -37,7 +37,7 @@ namespace osu.Game.Screens.Ranking
if (State.Value == DownloadState.LocallyAvailable) if (State.Value == DownloadState.LocallyAvailable)
return ReplayAvailability.Local; return ReplayAvailability.Local;
if (Score.Value?.HasReplay == true) if (Score.Value?.HasOnlineReplay == true)
return ReplayAvailability.Online; return ReplayAvailability.Online;
return ReplayAvailability.NotAvailable; return ReplayAvailability.NotAvailable;