1
0
mirror of https://github.com/ppy/osu.git synced 2025-03-13 01:27:25 +08:00

Remove unnecessary async state machine

This commit is contained in:
Dean Herbert 2020-12-19 13:58:56 +09:00
parent 772dd0287e
commit beaced3211

View File

@ -806,11 +806,11 @@ namespace osu.Game.Screens.Play
/// </summary> /// </summary>
/// <param name="score">The <see cref="Score"/> to import.</param> /// <param name="score">The <see cref="Score"/> to import.</param>
/// <returns>The imported score.</returns> /// <returns>The imported score.</returns>
protected virtual async Task ImportScore(Score score) protected virtual Task ImportScore(Score score)
{ {
// Replays are already populated and present in the game's database, so should not be re-imported. // Replays are already populated and present in the game's database, so should not be re-imported.
if (DrawableRuleset.ReplayScore != null) if (DrawableRuleset.ReplayScore != null)
return; return Task.CompletedTask;
LegacyByteArrayReader replayReader; LegacyByteArrayReader replayReader;
@ -820,7 +820,7 @@ namespace osu.Game.Screens.Play
replayReader = new LegacyByteArrayReader(stream.ToArray(), "replay.osr"); replayReader = new LegacyByteArrayReader(stream.ToArray(), "replay.osr");
} }
await scoreManager.Import(score.ScoreInfo, replayReader); return scoreManager.Import(score.ScoreInfo, replayReader);
} }
/// <summary> /// <summary>