1
0
mirror of https://github.com/ppy/osu.git synced 2026-05-18 00:49:53 +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
Unverified
parent f931f4c324
commit 96d784e06b
4 changed files with 2 additions and 6 deletions
@@ -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,
-2
View File
@@ -22,8 +22,6 @@ namespace osu.Game.Scoring
double Accuracy { get; }
bool HasReplay { get; }
long LegacyOnlineID { get; }
DateTimeOffset Date { get; }
-2
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; }
@@ -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;