1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-11 09:27:29 +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,
Ruleset = new OsuRuleset().RulesetInfo,
BeatmapInfo = beatmapManager.GetAllUsableBeatmapSets().First().Beatmaps.First(),
Hash = replayAvailable ? "online" : string.Empty,
HasOnlineReplay = replayAvailable,
User = new APIUser
{
Id = 39828,

View File

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

View File

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

View File

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